@@ -90,9 +90,9 @@ def script(code, options = {})
90
90
require "openssl"
91
91
RUBY
92
92
93
- expect ( err ) . to include ( /csv was loaded from (.*) from Ruby 3.4.0/ )
93
+ expect ( err ) . to include ( /csv used to be loaded from (.*) since Ruby 3.4.0/ )
94
94
expect ( err ) . to include ( /-e:15/ )
95
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby #{ RUBY_VERSION } / )
95
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby #{ RUBY_VERSION } / )
96
96
expect ( err ) . to include ( /-e:18/ )
97
97
end
98
98
@@ -112,7 +112,7 @@ def script(code, options = {})
112
112
require "active_support/all"
113
113
RUBY
114
114
115
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby 3.5.0/ )
115
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby 3.5.0/ )
116
116
expect ( err ) . to include ( /lib\/ active_support\/ all\. rb:1/ )
117
117
end
118
118
@@ -128,7 +128,7 @@ def script(code, options = {})
128
128
end
129
129
RUBY
130
130
131
- expect ( err ) . to include ( /net\/ smtp was loaded from (.*) from Ruby 3.1.0/ )
131
+ expect ( err ) . to include ( /net\/ smtp used to be loaded from (.*) since Ruby 3.1.0/ )
132
132
expect ( err ) . to include ( /-e:15/ )
133
133
expect ( err ) . to include ( "You can add net-smtp" )
134
134
end
@@ -144,7 +144,7 @@ def script(code, options = {})
144
144
require "openssl/bn"
145
145
RUBY
146
146
147
- expect ( err ) . to include ( /openssl\/ bn is found in openssl, (.*) part of the default gems starting from Ruby #{ RUBY_VERSION } / )
147
+ expect ( err ) . to include ( /openssl\/ bn is found in openssl, (.*) part of the default gems since Ruby #{ RUBY_VERSION } / )
148
148
expect ( err ) . to include ( /-e:14/ )
149
149
end
150
150
@@ -158,7 +158,7 @@ def script(code, options = {})
158
158
159
159
bundle "exec ruby script.rb"
160
160
161
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby 3.5.0/ )
161
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby 3.5.0/ )
162
162
expect ( err ) . to include ( /script\. rb:8/ )
163
163
end
164
164
@@ -176,7 +176,7 @@ def script(code, options = {})
176
176
177
177
bundle "exec ./script.rb"
178
178
179
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby 3.5.0/ )
179
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby 3.5.0/ )
180
180
expect ( err ) . to include ( /script\. rb:9/ )
181
181
end
182
182
@@ -185,7 +185,7 @@ def script(code, options = {})
185
185
create_file ( "Gemfile" , "source 'https://rubygems.org'" )
186
186
bundle "exec ruby -r./stub -ropenssl -e ''"
187
187
188
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby 3.5.0/ )
188
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby 3.5.0/ )
189
189
end
190
190
191
191
it "Show warning when warn is not the standard one in the current scope" do
@@ -208,7 +208,7 @@ def my
208
208
My.my
209
209
RUBY
210
210
211
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby 3.5.0/ )
211
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby 3.5.0/ )
212
212
expect ( err ) . to include ( /-e:19/ )
213
213
end
214
214
@@ -250,7 +250,7 @@ def my
250
250
require Gem::BUNDLED_GEMS::ARCHDIR + 'openssl'
251
251
RUBY
252
252
253
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby 3.5.0/ )
253
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby 3.5.0/ )
254
254
# TODO: We should assert caller location like below:
255
255
# test_warn_bootsnap.rb:14: warning: ...
256
256
end
@@ -270,7 +270,7 @@ def my
270
270
require Gem::BUNDLED_GEMS::ARCHDIR + "openssl"
271
271
RUBY
272
272
273
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby #{ RUBY_VERSION } / )
273
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby #{ RUBY_VERSION } / )
274
274
# TODO: We should assert caller location like below:
275
275
# test_warn_bootsnap_rubyarchdir_gem.rb:14: warning: ...
276
276
end
@@ -299,7 +299,7 @@ def my
299
299
require Gem.loaded_specs["fileutils2"].full_gem_path + '/lib/fileutils2'
300
300
RUBY
301
301
302
- expect ( err ) . to include ( /fileutils was loaded from (.*) from Ruby #{ RUBY_VERSION } / )
302
+ expect ( err ) . to include ( /fileutils used to be loaded from (.*) since Ruby #{ RUBY_VERSION } / )
303
303
# TODO: We should assert caller location like below:
304
304
# $GEM_HOME/gems/childprocess-5.0.0/lib/childprocess.rb:7: warning:
305
305
end
@@ -319,7 +319,7 @@ def my
319
319
create_file ( "Gemfile" , "source 'https://rubygems.org'" )
320
320
bundle "exec ruby script.rb"
321
321
322
- expect ( err ) . to include ( /openssl was loaded from (.*) from Ruby 3.5.0/ )
322
+ expect ( err ) . to include ( /openssl used to be loaded from (.*) since Ruby 3.5.0/ )
323
323
expect ( err ) . to include ( /script\. rb:13/ )
324
324
end
325
325
0 commit comments