spec/xcpretty/parser_spec.rb in xcpretty-0.3.0 vs spec/xcpretty/parser_spec.rb in xcpretty-0.4.0

- old
+ new

@@ -179,11 +179,11 @@ end it "parses specta failing tests" do @formatter.should receive(:format_failing_test).with("SKWelcomeViewControllerSpecSpec", "SKWelcomeViewController_When_a_user_opens_the_app_from_a_clean_installation_displays_the_welcome_screen", - "The step timed out after 2.00 seconds: Failed to find accessibility element with the label \"The asimplest way to make smarter business decisions\"", + "The step timed out after 2.00 seconds: Failed to find accessibility element with the label "The asimplest way to make smarter business decisions"", "/Users/vickeryj/Code/ipad-register/KIFTests/Specs/SKWelcomeViewControllerSpec.m:11") @parser.parse(SAMPLE_SPECTA_FAILURE) end it "parses old specta failing tests" do @@ -215,9 +215,17 @@ it "parses pending tests" do @formatter.should receive(:format_pending_test).with('TAPIConversationSpec', 'TAPIConversation_createConversation_SendsAPOSTRequestToTheConversationsEndpoint') @parser.parse(SAMPLE_PENDING_KIWI_TEST) + end + + it "parses and escapes Swift enum names", focus: true do + @formatter.should receive(:format_failing_test).with('App_Tests.ComparatorSpec', + 'a_comparator__when_matching_against_test1__returns_almost_equal_for_test2', + 'expected to equal <ComparisonAlmostEqual>, got <ComparisonEqual>', + '/Users/revolt/Development/App/Comparator/ComparatorSpec.swift:76') + @parser.parse(SAMPLE_SWIFT_ENUM_FAILURE) end it 'parses measuring tests' do @formatter.should receive(:format_measuring_test).with( 'SecEncodeTransformTests.SecEncodeTransformTests',