Skip to content
This repository
Browse code

MRI r37619 remove Kernel#using, and add main.using instead

  • Loading branch information...
commit 51ecb834238a162081c57c03bbca4718d37a5963 1 parent 5186a98
NARUSE, Yui nurse authored
0  core/kernel/fixtures/string_refinement.rb → core/main/fixtures/string_refinement.rb
File renamed without changes
9 core/kernel/using_spec.rb → core/main/using_spec.rb
@@ -3,7 +3,7 @@
3 3 ruby_version_is "2.0.0" do
4 4 require File.expand_path('../fixtures/string_refinement', __FILE__)
5 5
6   - describe "Kernel#using" do
  6 + describe "main.using" do
7 7 it "requires one or more Module arguments" do
8 8 lambda do
9 9 Module.new do
@@ -129,13 +129,6 @@ def bar; 'quux'; end
129 129 mod.class_eval {'hello'.foo}.should == 'foo'
130 130 end
131 131
132   - it "applies used refinements to lambda blocks" do
133   - lambda do
134   - using StringRefinement
135   - 'hello'.foo
136   - end.call.should == 'foo'
137   - end
138   -
139 132 ruby_bug "in a_matsuda's slides but does not appear to work", "2.0.1" do
140 133 it "applies used refinements to nested closures inside module/class_eval" do
141 134 mod = Module.new do

0 comments on commit 51ecb83

Please sign in to comment.
Something went wrong with that request. Please try again.