Module: Marso::Messages
- Defined in:
- lib/marso/messages/errors.rb
Class Method Summary collapse
- .no_component_found(component_type, rootpath) ⇒ Object
- .no_component_match(component_type, offenders) ⇒ Object
Class Method Details
.no_component_found(component_type, rootpath) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/marso/messages/errors.rb', line 5 def self.no_component_found(component_type, rootpath) component_name = proc { case component_type when :feature "features" when :story "stories" when :scenario "scenarios" else raise ArgumentError, ":#{component_type} is not a valid component_type. " + "Valid values are: #{[:feature, :story, :scenario].join(', ')}" end } "E0000: No #{component_name.call} were found under path '#{rootpath}'.\n" + "Browse to a different folder, or use the :rootpath option to define an adequate path" end |
.no_component_match(component_type, offenders) ⇒ Object
24 25 26 |
# File 'lib/marso/messages/errors.rb', line 24 def self.no_component_match(component_type, offenders) "E0001: The following selected #{component_type} ids couldn't be found: #{offenders.join(', ')}" end |