lib/wally/views/scenario.haml in wally-0.0.18 vs lib/wally/views/scenario.haml in wally-0.0.19
- old
+ new
@@ -1,7 +1,10 @@
%h2
- = @scenario["keyword"] + ": " + @scenario["name"]
+ %a{"href" => '../'}
+ = @feature["name"]
+%h2
+ = @scenario["name"]
- if @scenario["tags"]
= haml :tag_links, {:locals => {:tags => @scenario["tags"]}, :layout => false}
- if @background
%h3
= @background["keyword"] + ":"
@@ -16,14 +19,14 @@
%p
%span.step-keyword
= step["keyword"]
= escape_once(step["name"])
- else
- %p{:class => 'nosteps'}
+ %p{:class => 'alert-message error'}
= "Where's Wally? This scenario has no steps!?"
- if @scenario["examples"]
%h3 Examples:
- %table
+ %table{:class => 'zebra-striped'}
- @scenario["examples"].first["rows"].each_with_index do |row, index|
%tr
- row["cells"].each do |cell|
- if index === 0
%th