Skip to content

Commit f80d54e

Browse files
committed
Remove different error messages for JRuby
I think in the past JRuby generated a different error message on missing files. Now with 10.0.2.0 the messages are the same as with CRuby, so the special JRuby handling in tests is no longer necessary.
1 parent d3e01c6 commit f80d54e

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

spec/integration/container/plugins_spec.rb

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,8 @@ def self.dependencies
9999

100100
it "raises exception" do
101101
msg =
102-
if RUBY_ENGINE == "jruby"
103-
"dry-system plugin :test_plugin failed to load its dependencies: " \
104-
"no such file to load -- this-does-not-exist - add gem_name to your Gemfile"
105-
else
106-
"dry-system plugin :test_plugin failed to load its dependencies: " \
107-
"cannot load such file -- this-does-not-exist - add gem_name to your Gemfile"
108-
end
102+
"dry-system plugin :test_plugin failed to load its dependencies: " \
103+
"cannot load such file -- this-does-not-exist - add gem_name to your Gemfile"
109104

110105
expect { system.use(:test_plugin) }
111106
.to raise_error(Dry::System::PluginDependencyMissing, msg)
@@ -123,13 +118,8 @@ def self.dependencies
123118

124119
it "raises exception" do
125120
msg =
126-
if RUBY_ENGINE == "jruby"
127-
"dry-system plugin :test_plugin failed to load its dependencies: " \
128-
"no such file to load -- this-does-not-exist"
129-
else
130-
"dry-system plugin :test_plugin failed to load its dependencies: " \
131-
"cannot load such file -- this-does-not-exist"
132-
end
121+
"dry-system plugin :test_plugin failed to load its dependencies: " \
122+
"cannot load such file -- this-does-not-exist"
133123

134124
expect { system.use(:test_plugin) }
135125
.to raise_error(Dry::System::PluginDependencyMissing, msg)

0 commit comments

Comments
 (0)