Module: TarkaMatchers::Matchers::Expectation

Included in:
Object
Defined in:
lib/tarka_matchers/matchers/expectation/fail.rb,
lib/tarka_matchers/matchers/expectation/pass.rb,
lib/tarka_matchers/matchers/expectation/have_a_description_of.rb,
lib/tarka_matchers/matchers/expectation/have_a_failure_message_of.rb,
lib/tarka_matchers/matchers/expectation/support_block_expectations.rb,
lib/tarka_matchers/matchers/expectation/have_a_failure_message_when_negated_of.rb

Defined Under Namespace

Classes: Fail, HaveADescriptionOf, HaveAFailureMessageOf, HaveAFailureMessageWhenNegatedOf, Pass, SupportBlockExpectations

Instance Method Summary collapse

Instance Method Details

#failObject



5
6
7
# File 'lib/tarka_matchers/matchers/expectation/fail.rb', line 5

def	fail
	Fail.new
end

#have_a_description_of(expected) ⇒ Object



7
8
9
# File 'lib/tarka_matchers/matchers/expectation/have_a_description_of.rb', line 7

def	have_a_description_of expected			
	HaveADescriptionOf.new expected
end

#have_a_failure_message_of(expected) ⇒ Object



7
8
9
# File 'lib/tarka_matchers/matchers/expectation/have_a_failure_message_of.rb', line 7

def	have_a_failure_message_of expected
	HaveAFailureMessageOf.new expected
end

#have_a_failure_message_when_negated_of(expected) ⇒ Object



7
8
9
# File 'lib/tarka_matchers/matchers/expectation/have_a_failure_message_when_negated_of.rb', line 7

def	have_a_failure_message_when_negated_of expected
	HaveAFailureMessageWhenNegatedOf.new expected
end

#passObject



5
6
7
# File 'lib/tarka_matchers/matchers/expectation/pass.rb', line 5

def	pass
	Pass.new
end

#support_block_expectationsObject



5
6
7
# File 'lib/tarka_matchers/matchers/expectation/support_block_expectations.rb', line 5

def	support_block_expectations
	SupportBlockExpectations.new
end