diff options
Diffstat (limited to 'spec/ruby/core/main/using_spec.rb')
-rw-r--r-- | spec/ruby/core/main/using_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/ruby/core/main/using_spec.rb b/spec/ruby/core/main/using_spec.rb index 04acd536e1..c9449a6fe9 100644 --- a/spec/ruby/core/main/using_spec.rb +++ b/spec/ruby/core/main/using_spec.rb @@ -3,15 +3,14 @@ require_relative 'fixtures/classes' 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 |