Skip to content

Commit 6864428

Browse files
committed
Fixes "bundle exec rake", clash with test/unit
When multiple versions of "test/unit" are installed, the Gemfile.lock can be out of sync with "test/unit" version selected without bundler. When that happens, "bundle exec rake" fails, even when "rake" passes. This can generally be fixed by simply running "bundle update" so the lockfile has the latest version, too. And the lockfile is gitignored so this doesn't affect CI. But, the error can be confusing and waste time.
1 parent 174e35c commit 6864428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require "rake/testtask"
33

44
Rake::TestTask.new(:test) do |t|
55
t.libs << "test/lib"
6-
t.ruby_opts << "-rhelper"
6+
t.ruby_opts << "-rbundler/setup -rhelper"
77
t.test_files = FileList["test/**/test_*.rb"]
88
end
99

0 commit comments

Comments
 (0)