зеркало из https://github.com/github/ruby.git
Port -r option test to RSpec examples
This commit is contained in:
Родитель
208c46702a
Коммит
587955169e
|
@ -88,6 +88,13 @@ RSpec.describe "bundled_gems.rb" do
|
|||
expect(err).to include(/ostruct was loaded from (.*) from Ruby 3.5.0/)
|
||||
end
|
||||
|
||||
it "Show warning when bundle exec with -r option" do
|
||||
create_file("Gemfile", "source 'https://rubygems.org'")
|
||||
bundle "exec ruby -rostruct -e ''"
|
||||
|
||||
expect(err).to include(/ostruct was loaded from (.*) from Ruby 3.5.0/)
|
||||
end
|
||||
|
||||
it "Show warning when warn is not the standard one in the current scope" do
|
||||
script <<-RUBY
|
||||
module My
|
||||
|
@ -152,4 +159,12 @@ RSpec.describe "bundled_gems.rb" do
|
|||
|
||||
expect(err).to be_empty
|
||||
end
|
||||
|
||||
it "Don't show warning for reline when using irb from standard library" do
|
||||
create_file("Gemfile", "source 'https://rubygems.org'")
|
||||
bundle "exec ruby -rirb -e ''"
|
||||
|
||||
expect(err).to include(/irb was loaded from (.*) from Ruby 3.5.0/)
|
||||
expect(err).to_not include(/reline was loaded from (.*) from Ruby 3.5.0/)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
GEM
|
||||
specs:
|
||||
|
||||
PLATFORMS
|
||||
arm64-darwin-22
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
|
||||
BUNDLED WITH
|
||||
2.5.0.dev
|
|
@ -4,10 +4,6 @@ echo "* Show warning sub-feature like bigdecimal/util"
|
|||
ruby test_warn_sub_feature.rb
|
||||
echo
|
||||
|
||||
echo "* Show warning when bundle exec with -r option"
|
||||
bundle exec ruby -rostruct -e ''
|
||||
echo
|
||||
|
||||
echo "* Show warning with bootsnap"
|
||||
ruby test_warn_bootsnap.rb
|
||||
echo
|
||||
|
@ -27,7 +23,3 @@ echo
|
|||
echo "* Show warning with bootsnap and some gem in Gemfile"
|
||||
ruby test_warn_bootsnap_and_gem.rb
|
||||
echo
|
||||
|
||||
echo "* Don't show warning for reline when using irb from standard library"
|
||||
bundle exec ruby -rirb -e ''
|
||||
echo
|
||||
|
|
Загрузка…
Ссылка в новой задаче