lib/aipim-rails/html.rb in aipim-rails-0.0.179 vs lib/aipim-rails/html.rb in aipim-rails-0.0.181
- old
+ new
@@ -108,14 +108,20 @@
<li>'+colorize(step)+'</li>'
end
output.puts '
</ul>
- </div>
-
+ </div>'
+
+ if scenario[:screenshot]
+
+ output.puts '
<div class="panel-footer scenario-screenshot">
<a href="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'"><img src="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'" /></a>
- </div>
+ </div>'
+ end
+
+ output.puts '
</div>'
end
output.puts '