spec/unit/braintree/validation_error_spec.rb in braintree-4.14.0 vs spec/unit/braintree/validation_error_spec.rb in braintree-4.15.0

- old
+ new

@@ -2,18 +2,18 @@ describe Braintree::ValidationError do describe "initialize" do it "works" do error = Braintree::ValidationError.new :attribute => "some model attribute", :code => 1, :message => "bad juju" - error.attribute.should == "some model attribute" - error.code.should == 1 - error.message.should == "bad juju" + expect(error.attribute).to eq("some model attribute") + expect(error.code).to eq(1) + expect(error.message).to eq("bad juju") end end describe "inspect" do it "is pretty" do error = Braintree::ValidationError.new :attribute => "number", :code => "123456", :message => "Number is bad juju." - error.inspect.should == "#<Braintree::ValidationError (123456) Number is bad juju.>" + expect(error.inspect).to eq("#<Braintree::ValidationError (123456) Number is bad juju.>") end end end