The modern Ruby QuickBooks client: Part 3 - Gem Contributing
Record your own QBO sandbox transactions in a PR
You would like to enhance or fix something in the
qbo_api gem but aren't too sure about the "VCR-recorded-sandbox-transaction" part of the specs. Don't you worry a bit about that. Frankly, this "VCR-recorded-sandbox-transaction" thing will actually make it easier for you to contribute and not the other way around. Creating fictional API fixtures is the harder and more error-prone approach.
- Fork the
- Clone your fork, switch into the new directory, and
- Make a new branch for your PR e.g.
git checkout -b cust-ref-name
- Create a
.envfile and fill in all the values
$ git clone git://github.com/[your fork]/qbo_api && cd qbo_api $ bundle
- Please see part 1, which will fully explain how to get all the values you need to properly fill in the
bundle exec rspec spec/.
record: :alland rerun
git statusto see which files have been modified.
record: :allback to
git commit -a -m "Add CustomerRef:name information when create a new invoice"
Contributing to the
qbo_api gem is a cinch. The fact that the gem
utilizes VCR-recorded transactions against real QuickBooks sandboxes makes it
a great choice. That said, don't be intimated at all by VCR; follow this
tutorial and you will easily be able to contribute in making the gem even better.