spec/lunetas/candy_spec.rb in lunetas-0.0.3 vs spec/lunetas/candy_spec.rb in lunetas-0.0.4

- old
+ new

@@ -48,9 +48,14 @@ @instance.should_receive(:before).and_raise(test_exception) @instance.should_receive(:response).with(test_exception, 400) @instance.bite end + it 'should answer with a 500 if raised a runtime error' do + @instance.should_receive(:before).and_raise(StandardError) + @instance.bite.first.should == 500 + end + it 'should call to the get method' do @instance.should_receive(:get) @instance.bite end