Skip to content

Commit

Permalink
[helper] Set a fixed DerivedData dir for better testing
Browse files Browse the repository at this point in the history
  • Loading branch information
viteinfinite committed Dec 10, 2015
1 parent 3ec9e2e commit 5c96f14
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/slather/coverage_service/cobertura_xml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
let(:fixtures_project) do
proj = Slather::Project.open(FIXTURES_PROJECT_PATH)
proj.extend(Slather::CoverageService::CoberturaXmlOutput)
proj.build_directory = FIXTURES_DERIVED_DATA_PATH
proj
end

describe '#coverage_file_class' do
Expand Down
2 changes: 2 additions & 0 deletions spec/slather/coverage_service/coveralls_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
let(:fixtures_project) do
proj = Slather::Project.open(FIXTURES_PROJECT_PATH)
proj.extend(Slather::CoverageService::Coveralls)
proj.build_directory = FIXTURES_DERIVED_DATA_PATH
proj
end

describe "#coverage_file_class" do
Expand Down
2 changes: 2 additions & 0 deletions spec/slather/coverage_service/gutter_json_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
let(:fixtures_project) do
proj = Slather::Project.open(FIXTURES_PROJECT_PATH)
proj.extend(Slather::CoverageService::GutterJsonOutput)
proj.build_directory = FIXTURES_DERIVED_DATA_PATH
proj
end

describe '#coverage_file_class' do
Expand Down
2 changes: 2 additions & 0 deletions spec/slather/coverage_service/hardcover_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
let(:fixtures_project) do
proj = Slather::Project.open(FIXTURES_PROJECT_PATH)
proj.extend(Slather::CoverageService::Hardcover)
proj.build_directory = FIXTURES_DERIVED_DATA_PATH
proj
end

let(:fixture_yaml) do
Expand Down
2 changes: 2 additions & 0 deletions spec/slather/coverage_service/html_output_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
let(:fixtures_project) do
proj = Slather::Project.open(FIXTURES_PROJECT_PATH)
proj.extend(Slather::CoverageService::HtmlOutput)
proj.build_directory = FIXTURES_DERIVED_DATA_PATH
proj
end

describe '#coverage_file_class' do
Expand Down
2 changes: 2 additions & 0 deletions spec/slather/coverage_service/simple_output_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
let(:fixtures_project) do
proj = Slather::Project.open(FIXTURES_PROJECT_PATH)
proj.extend(Slather::CoverageService::SimpleOutput)
proj.build_directory = FIXTURES_DERIVED_DATA_PATH
proj
end

describe '#coverage_file_class' do
Expand Down

0 comments on commit 5c96f14

Please sign in to comment.