spec/fandango.spec.rb in fandango-0.1.8 vs spec/fandango.spec.rb in fandango-0.1.9
- old
+ new
@@ -19,8 +19,12 @@
movies_atts = hash[:movies]
movies_atts.size.must_equal 8
movies_atts.first[:title].must_equal 'Happy Feet Two'
end
+ it 'raises error if postal code nil' do
+ proc { Fandango.movies_near(nil) }.must_raise(ArgumentError)
+ end
+
end
end