Sha256: 987cbd3a9406b00215ed4c4aabb218bb1776df9bacb0050e73731af6094ea8c6

Contents?: true

Size: 357 Bytes

Versions: 10

Compression:

Stored size: 357 Bytes

Contents

require 'teststrap'

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

  assertion_test_passes("when expression matches actual") { 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

10 entries across 10 versions & 1 rubygems

Version Path
riot-0.10.9 test/assertion_macros/matching_test.rb
riot-0.10.8 test/assertion_macros/matching_test.rb
riot-0.10.7 test/assertion_macros/matching_test.rb
riot-0.10.6 test/assertion_macros/matching_test.rb
riot-0.10.5 test/assertion_macros/matching_test.rb
riot-0.10.4 test/assertion_macros/matching_test.rb
riot-0.10.3 test/assertion_macros/matching_test.rb
riot-0.10.2 test/assertion_macros/matching_test.rb
riot-0.10.1 test/assertion_macros/matching_test.rb
riot-0.10.0 test/assertion_macros/matching_test.rb