Skip to content

Commit

Permalink
Upgrade Mocha in development dependencies (#1021)
Browse files Browse the repository at this point in the history
Currently CI is failing because we refer to `MiniTest` and the class is
`Minitest`. This is also something that Mocha is doing, which is one of
our development dependencies, but updating that fixes it.
  • Loading branch information
parndt authored Nov 12, 2023
1 parent a72fac9 commit ae8ef18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion friendly_id.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "coveralls"
s.add_development_dependency "railties", ">= 4.0"
s.add_development_dependency "minitest", "~> 5.3"
s.add_development_dependency "mocha", "~> 1.1"
s.add_development_dependency "mocha", "~> 2.1"
s.add_development_dependency "yard"
s.add_development_dependency "i18n"
s.add_development_dependency "ffaker"
Expand Down
4 changes: 2 additions & 2 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
end

begin
TestCaseClass = MiniTest::Test
TestCaseClass = Minitest::Test
rescue NameError
TestCaseClass = MiniTest::Unit::TestCase
TestCaseClass = Minitest::Unit::TestCase
end

require "mocha/minitest"
Expand Down

0 comments on commit ae8ef18

Please sign in to comment.