@obj[:attribute].eql?("TestValue").should be_true
If not just tell me the test failed, it will tell me it failed, because @obj[:attribute] is zero or 1234 or what it is, it will be good. Is there any Way to do this?
@obj.attribute.should eql(5)
and it will throw an error, you usually see
expected 5
got 10
Are there any specific reasons why you are doing eql?
I have this statement:
@obj[:attribute].eql?("TestValue ").should be_true
If instead of just telling me that the test failed, it will tell me that it failed, because @obj[:attribute] is zero or 1234 or what it is, it would be good . Is there a way to do this?
When doing something
@obj.attribute.should eql(5)< /pre>And it will throw an error, you usually see
expected 5
got 10Is there The specific reason why you are doing eql?