Skip to content

Commit

Permalink
Add spec for framework coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
viteinfinite authored and Matt Delves committed Aug 29, 2015
1 parent e64a7b7 commit 8aa1c12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/slather/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ class SpecXcode7CoverageFile < Slather::ProfdataCoverageFile
binary_file_location = fixtures_project.send(:binary_file)
expect(binary_file_location).to eq("/Users/venmo/Library/Developer/Xcode/DerivedData/FixtureScheme/FixtureApp.app/FixtureApp")
end

it "should return the binary file location for a framework bundle provided a scheme" do
Dir.stub(:[]).with("/Users/venmo/Library/Developer/Xcode/DerivedData/FixtureScheme/*.framework").and_return(["/Users/venmo/Library/Developer/Xcode/DerivedData/FixtureScheme/FixtureFramework.framework"])
binary_file_location = fixtures_project.send(:binary_file)
expect(binary_file_location).to eq("/Users/venmo/Library/Developer/Xcode/DerivedData/FixtureScheme/FixtureFramework.framework/FixtureFramework")
end
end

describe "#dedupe" do
Expand Down

0 comments on commit 8aa1c12

Please sign in to comment.