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
|