spec/xcpretty/parser_spec.rb in xcpretty-0.2.8 vs spec/xcpretty/parser_spec.rb in xcpretty-0.3.0
- old
+ new
@@ -359,9 +359,16 @@
it "parses specta test suite started" do
@formatter.should receive(:format_test_suite_started).with('All tests')
@parser.parse(SAMPLE_SPECTA_SUITE_BEGINNING)
end
+ it "parses unknown strings" do
+ @formatter.should receive(:format_other).with(
+ SAMPLE_FORMAT_OTHER_UNRECOGNIZED_STRING
+ )
+ @parser.parse(SAMPLE_FORMAT_OTHER_UNRECOGNIZED_STRING)
+ end
+
context "errors" do
it "parses clang errors" do
@formatter.should receive(:format_error).with(SAMPLE_CLANG_ERROR)
@parser.parse(SAMPLE_CLANG_ERROR)
end