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

ruby-changes:63774

From: Benoit <ko1@a...>
Date: Fri, 27 Nov 2020 22:56:17 +0900 (JST)
Subject: [ruby-changes:63774] f0bfa266d7 (master): Update to ruby/mspec@b58e665

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

From f0bfa266d70651dc295a63b026938b246693499b Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Fri, 27 Nov 2020 14:55:29 +0100
Subject: Update to ruby/mspec@b58e665


diff --git a/spec/mspec/lib/mspec/matchers/include.rb b/spec/mspec/lib/mspec/matchers/include.rb
index 0b7eaf3..3f07f35 100644
--- a/spec/mspec/lib/mspec/matchers/include.rb
+++ b/spec/mspec/lib/mspec/matchers/include.rb
@@ -15,11 +15,11 @@ class IncludeMatcher https://github.com/ruby/ruby/blob/trunk/spec/mspec/lib/mspec/matchers/include.rb#L15
   end
 
   def failure_message
-    ["Expected #{@actual.inspect}", "to include #{@element.inspect}"]
+    ["Expected #{MSpec.format(@actual)}", "to include #{MSpec.format(@element)}"]
   end
 
   def negative_failure_message
-    ["Expected #{@actual.inspect}", "not to include #{@element.inspect}"]
+    ["Expected #{MSpec.format(@actual)}", "not to include #{MSpec.format(@element)}"]
   end
 end
 
diff --git a/spec/mspec/lib/mspec/mocks/mock.rb b/spec/mspec/lib/mspec/mocks/mock.rb
index bce41b6..28a083c 100644
--- a/spec/mspec/lib/mspec/mocks/mock.rb
+++ b/spec/mspec/lib/mspec/mocks/mock.rb
@@ -180,7 +180,7 @@ module Mock https://github.com/ruby/ruby/blob/trunk/spec/mspec/lib/mspec/mocks/mock.rb#L180
       mock_respond_to? obj, *args
     else
       SpecExpectation.fail_with("Mock '#{name_or_inspect obj}': method #{sym}\n",
-                            "called with unexpected arguments #{inspect_args compare}")
+                            "called with unexpected arguments #{inspect_args args}")
     end
   end
 
-- 
cgit v0.10.2


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

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