features/steps/formatting_steps.rb in xcpretty-0.0.7 vs features/steps/formatting_steps.rb in xcpretty-0.0.8
- old
+ new
@@ -63,15 +63,17 @@
Given(/^podfile.lock wasn't in sync$/) do
add_run_input SAMPLE_PODS_ERROR
end
Given(/^there was a syntax error$/) do
- SAMPLE_COMPILE_ERROR.split("\n").each do |line|
- add_run_input(line)
- end
+ add_run_input SAMPLE_COMPILE_ERROR
end
+Given(/^the linker has failed with undefined symbols$/) do
+ add_run_input SAMPLE_UNDEFINED_SYMBOLS
+end
+
When(/^I pipe to xcpretty with "(.*?)"$/) do |flags|
run_xcpretty(flags)
end
When(/^I pipe to xcpretty with a custom formatter$/) do
@@ -179,11 +181,11 @@
Then(/^I should not see the name of the test group$/) do
run_output.should_not include("RACTupleSpec")
end
Then(/^I should see a red error message$/) do
- run_output.should include(red("⌦ ") + " " + red(SAMPLE_PODS_ERROR.gsub('error: ', '')))
+ run_output.should include(red("⌦ " + SAMPLE_PODS_ERROR.gsub('error: ', '')))
end
Then(/^I should see a red compilation error$/) do
run_output.should include(red("expected identifier"))
end
@@ -192,7 +194,16 @@
run_output.should include("[[thread.lastMessage should] equal:thread.];")
end
Then(/^I should see a cyan cursor$/) do
run_output.should include(cyan(" ^"))
+end
+
+Then(/^I should see the undefined symbold message$/) do
+ run_output.should include(red("⌦ Undefined symbols for architecture x86_64"))
+end
+
+Then(/^I should see the symbol and reference that caused failure$/) do
+ run_output.should include("_OBJC_CLASS_$_CABasicAnimation")
+ run_output.should include("objc-class-ref in ATZRadialProgressControl.o")
end