Module: Crspec::Expectations
Constant Summary
collapse
- ExpectationNotMetError =
Crspec::ExpectationNotMetError
- UNDEFINED =
Object.new.freeze
Instance Method Summary
collapse
Methods included from Matchers
#all, #be, #be_a, #be_an_instance_of, #be_falsy, #be_nil, #be_truthy, #be_within, #change, #contain_exactly, define, #end_with, #eq, #have_attributes, #have_http_status, #include, #match, #match_array, #method_missing, #output, #raise_error, #respond_to, #respond_to_missing?, #satisfy, #start_with, #yield_control, #yield_successive_args, #yield_with_args
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Crspec::Matchers
Instance Method Details
#aggregate_failures(_label = nil, &block) ⇒ Object
100
101
102
|
# File 'lib/crspec/expectations.rb', line 100
def aggregate_failures(_label = nil, &block)
FailureAggregator.aggregate(&block)
end
|
#expect(value = UNDEFINED, &block) ⇒ Object
#is_expected ⇒ Object
96
97
98
|
# File 'lib/crspec/expectations.rb', line 96
def is_expected
expect(subject)
end
|