You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
response.shouldhave_tag("div","some text")person_address_tag.shouldhave_tag("input#person_address")# in a helperresponse.shouldhave_tag("div#form")dowith_tag("input#person_name[name=?]","person[name]")endresponse.shouldhave_tag("div#1")dowithout_tag("span","some text that shouldn't be there")endresponse.shouldinclude_text("This text will be in the actual string")
actual.shouldeq(expected)# passes if actual == expectedactual.should == expected# passes if actual == expectedactual.shouldeql(expected)# passes if actual.eql?(expected)
Identity
actual.shouldbe(expected)# passes if actual.equal?(expected)actual.shouldequal(expected)# passes if actual.equal?(expected)
actual.shouldbe_true# passes if actual is truthy (not nil or false)actual.shouldbe_false# passes if actual is falsy (nil or false)actual.shouldbe_nil# passes if actual is nil