diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-05 15:49:55 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-06-10 21:03:17 +0900 |
commit | c2e097c585cf85ad9188f8ecb6a267e179022014 (patch) | |
tree | 90706c03402221c44fbea0ebc52fd7317af1f434 | |
parent | aa2a882a6e23f6fc58362a4337cca735cc2fb8da (diff) | |
download | bundler-c2e097c585cf85ad9188f8ecb6a267e179022014.tar.gz |
spec/bundler/bundler/dsl_spec.rb: fix exception to raise
When describing "Runtime errors", raise a `RuntimeError` as-is.
-rw-r--r-- | spec/bundler/dsl_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb index 60c12706a5..214d159d05 100644 --- a/spec/bundler/dsl_spec.rb +++ b/spec/bundler/dsl_spec.rb @@ -277,9 +277,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 |