Skip to content

Commit

Permalink
Updated tests to work with Xcode 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuther committed Feb 11, 2018
1 parent f986a46 commit 5788fbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: objective-c
script: bundle exec rake
osx_image: xcode8.3
osx_image: xcode9.2

before_install:
- curl http://curl.haxx.se/ca/cacert.pem -o /usr/local/share/cacert.pem
Expand Down
8 changes: 4 additions & 4 deletions spec/slather/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,9 @@ class SpecXcode7CoverageFile < Slather::ProfdataCoverageFile
it "should print out environment info when in verbose_mode" do
project_root = Pathname("./").realpath

["\nProcessing coverage file: #{project_root}/spec/DerivedData/libfixtures/Build/Intermediates/CodeCoverage/Coverage.profdata",
[/\nProcessing coverage file: #{project_root}\/spec\/DerivedData\/libfixtures\/Build\/ProfileData\/[A-Z0-9-]+\/Coverage.profdata/,
"Against binary files:",
"\t#{project_root}/spec/DerivedData/libfixtures/Build/Intermediates/CodeCoverage/Products/Debug/fixturesTests.xctest/Contents/MacOS/fixturesTests",
"\t#{project_root}/spec/DerivedData/libfixtures/Build/Products/Debug/fixturesTests.xctest/Contents/MacOS/fixturesTests",
"\n"
].each do |line|
expect(fixtures_project).to receive(:puts).with(line)
Expand All @@ -525,7 +525,7 @@ class SpecXcode7CoverageFile < Slather::ProfdataCoverageFile

project_root = Pathname("./").realpath

["\nProcessing coverage file: #{project_root}/spec/DerivedData/libfixtures/Build/Intermediates/CodeCoverage/Coverage.profdata",
[/\nProcessing coverage file: #{project_root}\/spec\/DerivedData\/libfixtures\/Build\/ProfileData\/[A-Z0-9-]+\/Coverage.profdata/,
"No binary files found.",
"\n",
].each do |line|
Expand Down Expand Up @@ -587,7 +587,7 @@ def decimal_f *args
let(:configuration) { 'Debug' }
let(:project_root) { Pathname("./").realpath }
let(:coverage_dir) { "#{project_root}/spec/DerivedData/DerivedData/Build/Intermediates/CodeCoverage" }
let(:search_dir) { "#{coverage_dir}/Products/#{configuration}*/fixtures*" }
let(:search_dir) { "#{coverage_dir}/../../Products/#{configuration}*/fixtures*" }
let(:binary_file) { "#{coverage_dir}/Products/#{configuration}-iphonesimulator/fixtures.app/fixtures" }

before do
Expand Down

0 comments on commit 5788fbf

Please sign in to comment.