Class: Matchers::BuiltIn::ChangeFromValue
Instance Method Summary
collapse
#as_matcher, #matcher_only, #negate
#detect
Instance Method Details
#not_to_now(matcher) ⇒ Object
83
84
85
86
87
88
|
# File 'lib/rspec/change_to_now.rb', line 83
def not_to_now(matcher)
RSpec::Matchers::BuiltIn::ChangeToValue.new(
@change_details,
negate(matcher_only(matcher))
).from(@expected_before)
end
|
#to_now(matcher) ⇒ Object
76
77
78
79
80
81
|
# File 'lib/rspec/change_to_now.rb', line 76
def to_now(matcher)
RSpec::Matchers::BuiltIn::ChangeToValue.new(
@change_details,
matcher_only(matcher)
).from(@expected_before)
end
|
#with_final_result(expected) ⇒ Object
90
91
92
|
# File 'lib/rspec/change_to_now.rb', line 90
def with_final_result(expected)
to_without_to_now(expected)
end
|