mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
spec/bundler/bundler/dsl_spec.rb: fix exception to raise
When describing "Runtime errors", raise a `RuntimeError` as-is.
This commit is contained in:
parent
f258137083
commit
84c294eb0b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue