Port bundle exec warning check to RSpec example
This commit is contained in:
parent
49fde29f77
commit
703cffffc9
Notes:
git
2024-11-15 05:04:39 +00:00
@ -62,6 +62,18 @@ RSpec.describe "bundled_gems.rb" do
|
|||||||
expect(err).to include("You can add net-smtp")
|
expect(err).to include("You can add net-smtp")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "Show warning when bundle exec with ruby and script" do
|
||||||
|
code = <<-RUBY
|
||||||
|
require "ostruct"
|
||||||
|
RUBY
|
||||||
|
create_file("script.rb", code)
|
||||||
|
create_file("Gemfile", "source 'https://rubygems.org'")
|
||||||
|
|
||||||
|
bundle "exec ruby script.rb"
|
||||||
|
|
||||||
|
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
|
it "Show warning when warn is not the standard one in the current scope" do
|
||||||
script <<-RUBY
|
script <<-RUBY
|
||||||
module My
|
module My
|
||||||
|
@ -4,10 +4,6 @@ echo "* Show warning sub-feature like bigdecimal/util"
|
|||||||
ruby test_warn_sub_feature.rb
|
ruby test_warn_sub_feature.rb
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "* Show warning when bundle exec with ruby and script"
|
|
||||||
bundle exec ruby test_warn_bundle_exec.rb
|
|
||||||
echo
|
|
||||||
|
|
||||||
echo "* Show warning when bundle exec with shebang's script"
|
echo "* Show warning when bundle exec with shebang's script"
|
||||||
bundle exec ./test_warn_bundle_exec_shebang.rb
|
bundle exec ./test_warn_bundle_exec_shebang.rb
|
||||||
echo
|
echo
|
||||||
|
@ -1 +0,0 @@
|
|||||||
require "base64"
|
|
Loading…
x
Reference in New Issue
Block a user