Sha256: 19b777987b022d3951b8899b3cf0c1c334867fe82826c9d2f4dc99c1213768ec

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

require 'teststrap'

context "A matching assertion macro" do
  setup { Riot::Assertion.new("foo") { "abc" } }

  assertion_test_passes("when expression matches actual", %Q{matches /abc/}) { topic.matches(/abc/) }

  assertion_test_fails("when expression fails to match", "expected /abcd/ to match \"abc\"") do
    topic.matches(/abcd/)
  end

end # A matching assertion macro

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
riot-0.11.2 test/core/assertion_macros/matching_test.rb
riot-0.11.1 test/core/assertion_macros/matching_test.rb
riot-0.11.0 test/core/assertion_macros/matching_test.rb
riot-0.10.13 test/core/assertion_macros/matching_test.rb
riot-0.10.13.pre test/core/assertion_macros/matching_test.rb
riot-0.10.12 test/core/assertion_macros/matching_test.rb
riot-0.10.12.pre test/assertion_macros/matching_test.rb
riot-0.10.11 test/assertion_macros/matching_test.rb
riot-0.10.10 test/assertion_macros/matching_test.rb