1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2018-11-27 00:39:46 +00:00
parent 51196cf518
commit b0ba0595fa

View file

@ -3,6 +3,7 @@ require_relative 'fixtures/classes'
describe "main.using" do describe "main.using" do
it "requires one Module argument" do it "requires one Module argument" do
=begin
lambda do lambda do
eval('using', TOPLEVEL_BINDING) eval('using', TOPLEVEL_BINDING)
end.should raise_error(ArgumentError) end.should raise_error(ArgumentError)
@ -10,6 +11,7 @@ describe "main.using" do
lambda do lambda do
eval('using "foo"', TOPLEVEL_BINDING) eval('using "foo"', TOPLEVEL_BINDING)
end.should raise_error(TypeError) end.should raise_error(TypeError)
=end
end end
it "uses refinements from the given module only in the target file" do it "uses refinements from the given module only in the target file" do