Class: Warp::ActionMatchers::UpdateMatcher
- Inherits:
-
Matcher
show all
- Defined in:
- lib/warp/action_matchers/update_matcher.rb
Instance Attribute Summary
Attributes inherited from Matcher
#model
Instance Method Summary
collapse
Methods inherited from Matcher
#initialize, #matches?
Instance Method Details
#description ⇒ Object
7
8
9
|
# File 'lib/warp/action_matchers/update_matcher.rb', line 7
def description
"update a #{model_name}"
end
|
#failure_message ⇒ Object
11
12
13
|
# File 'lib/warp/action_matchers/update_matcher.rb', line 11
def failure_message
"expected a #{model_name} to be updated"
end
|
#failure_message_when_negated ⇒ Object
15
16
17
|
# File 'lib/warp/action_matchers/update_matcher.rb', line 15
def failure_message_when_negated
"expected no #{model_name} to be updated"
end
|