Sha256: 80aa3c8146da9c7b334c5efc8e218df0533c99393475dfd22f43e56137f92141
Contents?: true
Size: 470 Bytes
Versions: 34
Compression:
Stored size: 470 Bytes
Contents
module ShouldaMacros def should_be(boolean_flag) should "be #{boolean_flag}" do assert_equal true, subject.send(boolean_flag) end end def should_not_be(boolean_flag) should "not be #{boolean_flag}" do assert_equal false, subject.send(boolean_flag) end end def should_have(attr_name, expectation) should "have #{attr_name} == #{expectation.inspect}" do assert_equal expectation, subject.send(attr_name) end end end
Version data entries
34 entries across 28 versions & 8 rubygems