module Marso::Messages

Public Class Methods

no_component_found(component_type, rootpath) click to toggle source
# 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) click to toggle source
# 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