Skip to content

Commit 375ca46

Browse files
Fix delete spec to test for notfound exeception
1 parent 8db05c8 commit 375ca46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/simplegeo_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
simple = Simplegeo.new(@test_keys['key'], @test_keys['secret'], 'com.sentientmonkey.test')
6666
result = simple.records.put(2, {:lat => 47.607089, :lon => -122.332034, :test => 'two'})
6767
result = simple.records.delete(2)
68-
result = simple.records.get(2)
68+
lambda{ simple.records.get(2) }.should raise_exception(Simplegeo::NotFound)
6969
#TODO assertions
7070
end
7171

0 commit comments

Comments
 (0)