diff --git a/spec/regression/GH-1960_nonlocal_return_in_define_method_block.rb b/spec/regression/GH-1960_nonlocal_return_in_define_method_block_spec.rb similarity index 89% rename from spec/regression/GH-1960_nonlocal_return_in_define_method_block.rb rename to spec/regression/GH-1960_nonlocal_return_in_define_method_block_spec.rb index b6ae4ebfc25..684b03a0e4f 100644 --- a/spec/regression/GH-1960_nonlocal_return_in_define_method_block.rb +++ b/spec/regression/GH-1960_nonlocal_return_in_define_method_block_spec.rb @@ -8,6 +8,6 @@ class C describe 'NonLocalReturn' do it 'inside a block of a define_method block body returns normally' do - C.new.foo.should_be :foo + C.new.foo.should be(:foo) end end