Module UnifiedMatchers::Assertions
In: lib/unified_matchers/assertions.rb

Methods

Attributes

matcher  [RW] 

Public Instance methods

[Source]

# File lib/unified_matchers/assertions.rb, line 22
    def assert_data_kind_of ref, my, aClass
      assert_nothing_raised { @my_matcher_results = matcher[ref, my] }
      @my_matcher_results.each do |r|
        assert_kind_of aClass, r.data, r.to_s
      end
    end

[Source]

# File lib/unified_matchers/assertions.rb, line 17
    def assert_failure ref, my
      assert_nothing_raised { @my_matcher_results = matcher[ref, my] }
      assert @my_matcher_results.failure?, @my_matcher_results.to_s
    end

[Source]

# File lib/unified_matchers/assertions.rb, line 29
    def assert_message_equal ref, my, aMessage
      assert_nothing_raised { @my_matcher_results = matcher[ref, my] }
      @my_matcher_results.each do |r|
        assert_equal aMessage, r.message, r.name
      end
    end

[Source]

# File lib/unified_matchers/assertions.rb, line 12
    def assert_success ref, my
      assert_nothing_raised { @my_matcher_results = matcher[ref, my] }
      assert @my_matcher_results.success?, @my_matcher_results.to_s
    end

[Validate]