Skip to content

Commit

Permalink
Filter appraisal gemfiles path from coverage reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jejacks0n committed May 2, 2019
1 parent 82def99 commit 0e1ecbe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 31 deletions.
19 changes: 6 additions & 13 deletions gemfiles/rails_5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@
source "https://rubygems.org"

gem "rails", "< 5.2.3"

group :development, :test do
gem "puma"
gem "teaspoon-jasmine", path: "../teaspoon-jasmine"
gem "teaspoon-mocha", path: "../teaspoon-mocha"
gem "teaspoon-qunit", path: "../teaspoon-qunit"
gem "selenium-webdriver"
gem "capybara-webkit"
gem "simplecov", require: false
gem "rubocop", require: false

gemspec name: "teaspoon-devkit", path: "../"
end
gem "teaspoon-jasmine", path: "../teaspoon-jasmine"
gem "teaspoon-mocha", path: "../teaspoon-mocha"
gem "teaspoon-qunit", path: "../teaspoon-qunit"
gem "rubocop", require: false
gem "rubocop-rails_config"

gemspec name: "teaspoon", path: "../"
gemspec name: "teaspoon-devkit", path: "../"
22 changes: 9 additions & 13 deletions gemfiles/rails_6.gemfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
source "https://rubygems.org"
# This file was generated by Appraisal

gem "rails", "6.0.0.beta1"
source "https://rubygems.org"

group :development, :test do
gem "puma"
gem "teaspoon-jasmine", path: "../teaspoon-jasmine"
gem "teaspoon-mocha", path: "../teaspoon-mocha"
gem "teaspoon-qunit", path: "../teaspoon-qunit"
gem "selenium-webdriver"
gem "capybara-webkit"
gem "simplecov", require: false
gem "rubocop", require: false
gemspec name: "teaspoon-devkit", path: "../"
end
gem "rails", "6.0.0.beta3"
gem "teaspoon-jasmine", path: "../teaspoon-jasmine"
gem "teaspoon-mocha", path: "../teaspoon-mocha"
gem "teaspoon-qunit", path: "../teaspoon-qunit"
gem "rubocop", require: false
gem "rubocop-rails_config"

gemspec name: "teaspoon", path: "../"
gemspec name: "teaspoon-devkit", path: "../"
7 changes: 2 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

filters.clear

add_filter { |src|
filtered = !(src.filename =~ /teaspoon\//)
puts src.filename unless filtered
filtered
}
add_filter { |src| !(src.filename =~ /teaspoon\//) }
add_filter [
"gemfiles", # appraisal installs gems here
"teaspoon_env.rb", # teaspoon envs
"devkit.rb", # devkit tools
"framework.rb", # framework definitions
Expand Down

0 comments on commit 0e1ecbe

Please sign in to comment.