features/steps/formatting_steps.rb in xcpretty-0.0.2 vs features/steps/formatting_steps.rb in xcpretty-0.0.3
- old
+ new
@@ -54,10 +54,10 @@
Then(/^I should see a red failed test icon$/) do
run_output.should include("#{RED_START}F#{COLOR_END}")
end
Then(/^the final execution message should be (red|green)$/) do |color|
- last_line = run_output.lines.last
+ last_line = run_output.lines.to_a.last
start_color = color == "red" ? RED_START : GREEN_START
last_line.should start_with(start_color)
last_line.strip.should end_with(COLOR_END)
end