Provides a FakeQuickbooks
Add this line to your application's Gemfile:
gem 'fake_quickbooks', git: 'https://git.cratebind.com/open-source/fake_quickbooks.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fake_quickbooks
Add the following to your rails_helper.rb where you have your webmock stub requests:
# Quickbooks API
stub_request(:any, /sandbox-quickbooks.api.intuit.com/).to_rack(FakeQuickbooks::Server)
stub_request(:any, /.*appcenter.intuit.com.*/).to_rack(FakeQuickbooks::Server)
To get a paid invoice response, set the id to 'paid'
- Fork it ( https://github.com/[my-github-username]/fake_quickbooks/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request