Class: GeneratorSpec::Matcher::Root
- Defined in:
- lib/generator_spec/matcher.rb
Instance Attribute Summary
Attributes inherited from Directory
Instance Method Summary collapse
Methods inherited from Directory
#directory, #file, #initialize, #location, #migration, #no_file
Constructor Details
This class inherits a constructor from GeneratorSpec::Matcher::Directory
Instance Method Details
#failure_message ⇒ Object
113 114 115 116 117 118 119 120 121 |
# File 'lib/generator_spec/matcher.rb', line 113 def if @failure.is_a?(Array) && @failure[0] == :not "Structure should not have had #{@failure[1]}, but it did" elsif @failure.is_a?(Array) "Structure should have #{@failure[0]} with #{@failure[1]}. It had:\n#{@failure[2]}" else "Structure should have #{@failure}, but it didn't" end end |