spec/fandango.spec.rb in fandango-0.1.9 vs spec/fandango.spec.rb in fandango-0.2.0

- old
+ new

@@ -23,8 +23,13 @@ it 'raises error if postal code nil' do proc { Fandango.movies_near(nil) }.must_raise(ArgumentError) end + it 'raises BadResponse unless feedzirra feed responds to entries' do + Feedzirra::Feed.expects(:fetch_and_parse).returns(0) + proc { Fandango.movies_near(123) }.must_raise(Fandango::BadResponse) + end + end end