Pr0d1r2-active_record_geocodable 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_record_geocodable}
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marcin Nowicki"]
@@ -241,7 +241,7 @@ describe GeocodableModelWithRequire do
241
241
 
242
242
  before(:each) do
243
243
  @geocodable_model = GeocodableModelWithRequire.new(:lat => 84, :lng => 72)
244
- @geocodable_model.should_receive(:geocode_complete_address).and_return(true)
244
+ @geocodable_model.stub!(:geocode_complete_address).and_return(true)
245
245
  end
246
246
 
247
247
  it 'should be valid with all ok' do
@@ -268,4 +268,9 @@ describe GeocodableModelWithRequire do
268
268
  @geocodable_model.should_not be_valid
269
269
  end
270
270
 
271
+ it 'should not be valid when geocode_complete_address was not successful' do
272
+ @geocodable_model.should_receive(:geocode_complete_address).and_return(false)
273
+ @geocodable_model.should_not be_valid
274
+ end
275
+
271
276
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Pr0d1r2-active_record_geocodable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Nowicki