spec/lib/hybag/validator_spec.rb in hybag-0.0.10 vs spec/lib/hybag/validator_spec.rb in hybag-0.0.11

- old
+ new

@@ -41,10 +41,10 @@ context "when the subject is invalid" do before(:each) do dummy.stub(:baggable?).and_return(false) end it "should raise an error" do - expect{subject.validate!}.to raise_error + expect{subject.validate!}.to raise_error(Hybag::InvalidBaggable) end end end end \ No newline at end of file