1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Merge pull request #1765 from bjfish/update-load-path

Avoid adding project directory to the load path for tests
This commit is contained in:
Jordan Owens 2022-03-01 18:38:16 -05:00 committed by GitHub
commit 6bfea8087e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,6 @@ end
Rake::TestTask.new(:test) do |t|
t.test_files = FileList['test/*_test.rb']
t.ruby_opts = ['-r rubygems'] if defined? Gem
t.ruby_opts << '-I.'
t.warning = true
end
@ -37,7 +36,6 @@ Rake::TestTask.new(:"test:core") do |t|
routing server settings sinatra static templates]
t.test_files = core_tests.map {|n| "test/#{n}_test.rb"}
t.ruby_opts = ["-r rubygems"] if defined? Gem
t.ruby_opts << "-I."
t.warning = true
end