Skip to content

Commit

Permalink
💚 Normalize test env between Rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Sep 22, 2024
1 parent 4aeeaad commit fd21396
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .rubocop_gradual.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"spec/gem_bench/team_spec.rb:1266648289": [
"spec/gem_bench/team_spec.rb:544152244": [
[39, 7, 21, "RSpec/MultipleExpectations: Example has too many expectations [2/1].", 4057686576],
[39, 7, 463, "RSpec/ExampleLength: Example has too many lines. [12/5]", 717044346],
[238, 9, 22, "RSpec/MultipleExpectations: Example has too many expectations [2/1].", 837383149],
Expand All @@ -17,7 +17,7 @@
[362, 11, 20, "RSpec/MultipleExpectations: Example has too many expectations [2/1].", 608832949],
[362, 11, 956, "RSpec/ExampleLength: Example has too many lines. [15/5]", 1208468539],
[383, 13, 20, "RSpec/MultipleExpectations: Example has too many expectations [2/1].", 608832949],
[383, 13, 1083, "RSpec/ExampleLength: Example has too many lines. [16/5]", 3055949499],
[408, 9, 18, "RSpec/MultipleExpectations: Example has too many expectations [2/1].", 2487416927]
[383, 13, 931, "RSpec/ExampleLength: Example has too many lines. [14/5]", 581654106],
[406, 9, 18, "RSpec/MultipleExpectations: Example has too many expectations [2/1].", 2487416927]
]
}
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ gem <<~GEM_NAME.chomp
pry-byebug
GEM_NAME

# Need faker be loaded by bundler for evaluation in specs
gem "faker", "~> 3.4", ">= 3.4.2"
# Need test-unit be loaded by bundler for evaluation in specs
gem "test-unit", "~> 3.6"

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ PLATFORMS
DEPENDENCIES
bundler
byebug (>= 2.0.3)
faker (~> 3.4, >= 3.4.2)
faker (~> 3.4, = 3.4.2)
gem_bench!
kettle-soup-cover (~> 1.0, >= 1.0.2)
method_source (>= 1.1.0)
Expand Down
2 changes: 0 additions & 2 deletions gemfiles/ancient.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ gem "rspec"
gem "rspec-block_is_expected"
gem "super_diff"

# Need faker be loaded by bundler for evaluation in specs
gem "faker", "~> 3.4", ">= 3.4.2"
# Need test-unit be loaded by bundler for evaluation in specs
gem "test-unit", "~> 3.6"

Expand Down
2 changes: 0 additions & 2 deletions gemfiles/coverage.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ source "https://rubygems.org"

gemspec path: "../"

# Need faker be loaded by bundler for evaluation in specs
gem "faker", "~> 3.4", ">= 3.4.2"
# Need test-unit be loaded by bundler for evaluation in specs
gem "test-unit", "~> 3.6"
2 changes: 0 additions & 2 deletions gemfiles/style.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ source "https://rubygems.org"

gemspec path: "../"

# Need faker be loaded by bundler for evaluation in specs
gem "faker", "~> 3.4", ">= 3.4.2"
# Need test-unit be loaded by bundler for evaluation in specs
gem "test-unit", "~> 3.6"
2 changes: 0 additions & 2 deletions gemfiles/vanilla.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ source "https://rubygems.org"

gemspec path: "../"

# Need faker be loaded by bundler for evaluation in specs
gem "faker", "~> 3.4", ">= 3.4.2"
# Need test-unit be loaded by bundler for evaluation in specs
gem "test-unit", "~> 3.6"
3 changes: 0 additions & 3 deletions spec/gem_bench/scout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
[
"# For complexity!\n",
"# (this syntax is not supported by gem_bench, but also shouldn't make it blow up)\n",
"# Need faker be loaded by bundler for evaluation in specs\n",
"# Need test-unit be loaded by bundler for evaluation in specs\n",
"# Specify your gem's dependencies in gem_bench.gemspec\n",
],
Expand Down Expand Up @@ -206,7 +205,6 @@
[
"# For complexity!\n",
"# (this syntax is not supported by gem_bench, but also shouldn't make it blow up)\n",
"# Need faker be loaded by bundler for evaluation in specs\n",
"# Need test-unit be loaded by bundler for evaluation in specs\n",
"# Specify your gem's dependencies in gem_bench.gemspec\n",
],
Expand All @@ -230,7 +228,6 @@
[
"# For complexity!\n",
"# (this syntax is not supported by gem_bench, but also shouldn't make it blow up)\n",
"# Need faker be loaded by bundler for evaluation in specs\n",
"# Need test-unit be loaded by bundler for evaluation in specs\n",
"# Specify your gem's dependencies in gem_bench.gemspec\n",
],
Expand Down
16 changes: 8 additions & 8 deletions spec/gem_bench/team_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -384,15 +384,15 @@
allow(scout).to receive(:loaded_gems).and_return([["rspec", "3.13.0"]])
allow(GemBench::Scout).to receive(:new).and_return(scout)
out1 = <<~OUT1.chomp
[GemBench] Will show bad ideas. Be Careful.
[GemBench] Detected 1 loaded gems
[GemBench] Found no gems that need to load at boot time.
OUT1
[GemBench] Will show bad ideas. Be Careful.
[GemBench] Detected 1 loaded gems
[GemBench] Found no gems that need to load at boot time.
OUT1
out2 = <<~OUT2.chomp
[GemBench] Here are 1 suggestions for improvement:
\t[SUGGESTION] 1) rspec had no files to evaluate.
[GemBench] Evaluated 1 gems against your Gemfile but found no primary dependencies which can safely skip require on boot (require: false).
OUT2
[GemBench] Here are 1 suggestions for improvement:
\t[SUGGESTION] 1) rspec had no files to evaluate.
[GemBench] Evaluated 1 gems against your Gemfile but found no primary dependencies which can safely skip require on boot (require: false).
OUT2
block_is_expected.to not_raise_error.and output(include(out1, out2)).to_stdout
expect(GemBench::Scout).to have_received(:new)
end
Expand Down

0 comments on commit fd21396

Please sign in to comment.