Class: RSpec::RailsApp::ArtifactClass::Matchers::HaveArtifactClass

Inherits:
RSpec::RubyContentMatchers::HaveClass
  • Object
show all
Defined in:
lib/rails_app_spec/matchers/artifact/class/have_artifact_class.rb

Instance Method Summary collapse

Instance Method Details

#failure_messageObject



4
5
6
7
8
# File 'lib/rails_app_spec/matchers/artifact/class/have_artifact_class.rb', line 4

def failure_message
  super                     
  puts "Content: #{content}"        
  "Expected the code to have a #{postfix} class called #{name}#{postfix}"
end

#negative_failure_messageObject



10
11
12
13
14
# File 'lib/rails_app_spec/matchers/artifact/class/have_artifact_class.rb', line 10

def negative_failure_message
  super                                      
  puts "Content: #{content}"        
  "Did not expected there to be the #{postfix} class #{name}#{postfix}"
end