Flowdock
new(name, expected=nil, &block_passed_to_init) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/matchers/matcher.rb, line 4
      def initialize(name, expected=nil, &block_passed_to_init)
        @name = name
        @expected = expected
        @block = block_passed_to_init
        @messages = {
          :description => lambda {"#{name_to_sentence} #{expected}"},
          :failure_message_for_should => lambda {|actual| "expected #{actual} to #{name_to_sentence} #{expected}"},
          :failure_message_for_should_not => lambda {|actual| "expected #{actual} not to #{name_to_sentence} #{expected}"}
        }
      end
Register or log in to add new notes.