Class: Warp::ActionMatchers::DestroyMatcher

Inherits:
Matcher show all
Defined in:
lib/warp/action_matchers/destroy_matcher.rb

Instance Attribute Summary

Attributes inherited from Matcher

#model

Instance Method Summary collapse

Methods inherited from Matcher

#initialize, #matches?

Constructor Details

This class inherits a constructor from Warp::ActionMatchers::Matcher

Instance Method Details

#descriptionObject



7
8
9
# File 'lib/warp/action_matchers/destroy_matcher.rb', line 7

def description
  "destroy a #{model_name}"
end

#failure_messageObject



11
12
13
# File 'lib/warp/action_matchers/destroy_matcher.rb', line 11

def failure_message
  "expected a #{model_name} to be destroyed"
end

#failure_message_when_negatedObject



15
16
17
# File 'lib/warp/action_matchers/destroy_matcher.rb', line 15

def failure_message_when_negated
  "expected no #{model_name} to be destroyed"
end