mas-rad_core 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -302,6 +302,15 @@ RSpec.describe Firm do
302
302
  end
303
303
  end
304
304
 
305
+ context 'when the firm is not valid' do
306
+ before { firm.address_line_one = nil }
307
+
308
+ it 'the firm is not scheduled for geocoding' do
309
+ expect(GeocodeFirmJob).not_to receive(:perform_later)
310
+ firm.save!(validate: false)
311
+ end
312
+ end
313
+
305
314
  context 'when the address has changed' do
306
315
  let(:firm) { create(:firm) }
307
316
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mas-rad_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lovell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails