[前][次][番号順一覧][スレッド一覧]

ruby-changes:56020

From: Nobuyoshi <ko1@a...>
Date: Wed, 5 Jun 2019 15:53:14 +0900 (JST)
Subject: [ruby-changes:56020] Nobuyoshi Nakada: 84c294eb0b (trunk): spec/bundler/bundler/dsl_spec.rb: fix exception to raise

https://git.ruby-lang.org/ruby.git/commit/?id=84c294eb0b

From 84c294eb0b5b5206f01f062d4c2c860a57c7873c Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 5 Jun 2019 15:49:55 +0900
Subject: spec/bundler/bundler/dsl_spec.rb: fix exception to raise

When describing "Runtime errors", raise a `RuntimeError` as-is.

diff --git a/spec/bundler/bundler/dsl_spec.rb b/spec/bundler/bundler/dsl_spec.rb
index a17bfd4..de2a43a 100644
--- a/spec/bundler/bundler/dsl_spec.rb
+++ b/spec/bundler/bundler/dsl_spec.rb
@@ -333,9 +333,9 @@ RSpec.describe Bundler::Dsl do https://github.com/ruby/ruby/blob/trunk/spec/bundler/bundler/dsl_spec.rb#L333
 
   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
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]