summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-05 15:49:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-05 15:51:48 +0900
commit84c294eb0b5b5206f01f062d4c2c860a57c7873c (patch)
treea8191b11302c5235bf98f8aba59ace07661d3ad7 /spec
parentf258137083051a7fc2412c62e3fb239f93d1fdf8 (diff)
spec/bundler/bundler/dsl_spec.rb: fix exception to raise
When describing "Runtime errors", raise a `RuntimeError` as-is.
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/bundler/dsl_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/bundler/dsl_spec.rb b/spec/bundler/bundler/dsl_spec.rb
index a17bfd4938..de2a43adc6 100644
--- a/spec/bundler/bundler/dsl_spec.rb
+++ b/spec/bundler/bundler/dsl_spec.rb
@@ -333,9 +333,9 @@ RSpec.describe Bundler::Dsl do
describe "Runtime errors", :unless => Bundler.current_ruby.on_18? do
it "will raise a Bundler::GemfileError" do
- gemfile "s = 'foo'.freeze; s.strip!"
+ gemfile "raise RuntimeError, 'foo'"
expect { Bundler::Dsl.evaluate(bundled_app("Gemfile"), nil, true) }.
- to raise_error(Bundler::GemfileError, /There was an error parsing `Gemfile`: can't modify frozen String. Bundler cannot continue./i)
+ to raise_error(Bundler::GemfileError, /There was an error parsing `Gemfile`: foo. Bundler cannot continue./i)
end
end