зеркало из https://github.com/github/ruby.git
[PRISM] Make prism pass bundler specs
This commit is contained in:
Родитель
3e84da0970
Коммит
9e7ccc00bc
|
@ -175,7 +175,7 @@ RSpec.describe Bundler::Dsl do
|
|||
it "handles syntax errors with a useful message" do
|
||||
expect(Bundler).to receive(:read_file).with(source_root.join("Gemfile").to_s).and_return("}")
|
||||
expect { subject.eval_gemfile("Gemfile") }.
|
||||
to raise_error(Bundler::GemfileError, /There was an error parsing `Gemfile`: (syntax error, unexpected tSTRING_DEND|(compile error - )?syntax error, unexpected '\}'). Bundler cannot continue./)
|
||||
to raise_error(Bundler::GemfileError, /There was an error parsing `Gemfile`: (syntax error, unexpected tSTRING_DEND|(compile error - )?syntax error, unexpected '\}'|.+?unexpected '}', ignoring it\n). Bundler cannot continue./m)
|
||||
end
|
||||
|
||||
it "distinguishes syntax errors from evaluation errors" do
|
||||
|
@ -322,7 +322,7 @@ RSpec.describe Bundler::Dsl do
|
|||
it "will raise a Bundler::GemfileError" do
|
||||
gemfile "gem 'foo', :path => /unquoted/string/syntax/error"
|
||||
expect { Bundler::Dsl.evaluate(bundled_app_gemfile, nil, true) }.
|
||||
to raise_error(Bundler::GemfileError, /There was an error parsing `Gemfile`:( compile error -)? unknown regexp options - trg.+ Bundler cannot continue./)
|
||||
to raise_error(Bundler::GemfileError, /There was an error parsing `Gemfile`:( compile error -)?.+?unknown regexp options - trg.+ Bundler cannot continue./m)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче