qbo_rails 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,16 +74,13 @@ describe 'QBO request' do
74
74
  end
75
75
  end
76
76
 
77
- it 'does not match a custom error handler and records error' do
77
+ it 'does not match a custom error handler and records error generated by quickbooks-ruby' do
78
78
  account = create(:account)
79
79
  record = create(:customer)
80
80
  qbo_rails, qb_customer = map_to_qbo(account, record)
81
81
  qb_customer.display_name = 'Emer:Rack'
82
- #Quickbooks.log = true
83
- VCR.use_cassette("qbo_rails/customer/error_customer_bad_display_name", record: :none) do
84
- expect{ qbo_rails.create_or_update(record, qb_customer) }.to change{ QboError.count }.by(1)
85
- expect(qbo_rails.error).to_not be_nil
86
- end
82
+ expect{ qbo_rails.create_or_update(record, qb_customer) }.to change{ QboError.count }.by(1)
83
+ expect(qbo_rails.error).to_not be_nil
87
84
  end
88
85
 
89
86
  # You can see this is error in spec/dummy/app/service/qbo_rails/error_handler.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbo_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Pelczarski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-30 00:00:00.000000000 Z
11
+ date: 2016-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails