spec/xcpretty/parser_spec.rb in xcpretty-0.1.11 vs spec/xcpretty/parser_spec.rb in xcpretty-0.1.12
- old
+ new
@@ -88,11 +88,11 @@
@formatter.should receive(:format_compile).with("KWNull.mm", "Classes/Core/KWNull.mm")
@parser.parse(SAMPLE_ANOTHER_COMPILE.sub('.m', '.mm'))
end
it 'parses compiling Swift source files' do
- @formatter.should receive(:format_compile).with("KWNull.swift", "Classes/Core/KWNull.swift")
- @parser.parse(SAMPLE_ANOTHER_COMPILE.sub('.m', '.swift'))
+ @formatter.should receive(:format_compile).with("Resource.swift", "/Users/paul/foo/bar/siesta/Source/Resource.swift")
+ @parser.parse(SAMPLE_SWIFT_COMPILE)
end
it "parses compiling C and C++ files" do
['.c', '.cc', '.cpp', '.cxx'].each do |file_extension|
@formatter.should receive(:format_compile).with("KWNull" + file_extension, "Classes/Core/KWNull" + file_extension)