11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/stringup/cli.rb', line 11
def info(path)
script = path_to_script(path)
puts "FILE\n\n #{path}\n\n"
puts "COMMAND\n\n #{script.command}\n\n"
puts "SCENARIOS\n\n"
script.scenarios.sort_by { |k, v| k.to_s }.each do |_, scenario|
puts " #{scenario.name}: #{scenario.description}"
[:before, :after].each do |event|
puts " #{event.to_s.upcase}"
scenario.assertions.each do |assertion|
puts " should #{assertion.describe_should_at(event)}"
end
end
end
end
|