Class: Warp::ActionMatchers::CreateMatcher

Inherits:
Matcher show all
Defined in:
lib/warp/action_matchers/create_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/create_matcher.rb', line 7

def description
  "create a #{model_name}"
end

#failure_messageObject



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

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

#failure_message_when_negatedObject



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

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