spec/xcpretty/parser_spec.rb in xcpretty-0.1.6 vs spec/xcpretty/parser_spec.rb in xcpretty-0.1.7
- old
+ new
@@ -209,14 +209,22 @@
SAMPLE_DUPLICATE_SYMBOLS.each_line do |line|
@parser.parse(line)
end
end
-
-
it "parses ocunit test run finished" do
@formatter.should receive(:format_test_run_finished).with('ReactiveCocoaTests.octest(Tests)', '2013-12-10 07:03:03 +0000.')
@parser.parse(SAMPLE_OCUNIT_TEST_RUN_COMPLETION)
+ end
+
+ it "parses ocunit test run passed" do
+ @formatter.should receive(:format_test_run_finished).with('Hazelnuts.xctest', '2014-09-24 23:09:20 +0000.')
+ @parser.parse(SAMPLE_OCUNIT_PASSED_TEST_RUN_COMPLETION)
+ end
+
+ it "parses ocunit test run failed" do
+ @formatter.should receive(:format_test_run_finished).with('Macadamia.octest', '2014-09-24 23:09:20 +0000.')
+ @parser.parse(SAMPLE_OCUNIT_FAILED_TEST_RUN_COMPLETION)
end
it "parses specta test run finished" do
@formatter.should receive(:format_test_run_finished).with('KIFTests.xctest', '2014-02-28 15:44:32 +0000.')
@parser.parse(SAMPLE_SPECTA_TEST_RUN_COMPLETION)