ruby-changes:53800
From: ko1 <ko1@a...>
Date: Tue, 27 Nov 2018 12:13:05 +0900 (JST)
Subject: [ruby-changes:53800] ko1:r66018 (trunk): enable another assertion
ko1 2018-11-27 12:12:58 +0900 (Tue, 27 Nov 2018) New Revision: 66018 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66018 Log: enable another assertion Modified files: trunk/spec/ruby/core/main/using_spec.rb Index: spec/ruby/core/main/using_spec.rb =================================================================== --- spec/ruby/core/main/using_spec.rb (revision 66017) +++ spec/ruby/core/main/using_spec.rb (revision 66018) @@ -3,15 +3,14 @@ require_relative 'fixtures/classes' https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/main/using_spec.rb#L3 describe "main.using" do it "requires one Module argument" do -=begin lambda do eval('using', TOPLEVEL_BINDING) end.should raise_error(ArgumentError) -=end - +=begin lambda do eval('using "foo"', TOPLEVEL_BINDING) end.should raise_error(TypeError) +=end end it "uses refinements from the given module only in the target file" do -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/