Pr0d1r2-active_record_geocodable 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/active_record_geocodable.gemspec +1 -1
- data/spec/active_record_geocodable_spec.rb +6 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -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.
|
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
|