diff options
-rw-r--r-- | spec/rubyspec/language/undef_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/rubyspec/language/undef_spec.rb b/spec/rubyspec/language/undef_spec.rb index 5425b78876..9e788f2a09 100644 --- a/spec/rubyspec/language/undef_spec.rb +++ b/spec/rubyspec/language/undef_spec.rb @@ -9,35 +9,35 @@ describe "The undef keyword" do @obj = @undef_class.new @obj.meth(5).should == 5 end - + it "with an identifier" do @undef_class.class_eval do undef meth end lambda { @obj.meth(5) }.should raise_error(NoMethodError) end - + it "with a simple symbol" do @undef_class.class_eval do undef :meth end lambda { @obj.meth(5) }.should raise_error(NoMethodError) end - + it "with a single quoted symbol" do @undef_class.class_eval do undef :'meth' end lambda { @obj.meth(5) }.should raise_error(NoMethodError) end - + it "with a double quoted symbol" do @undef_class.class_eval do undef :"meth" end lambda { @obj.meth(5) }.should raise_error(NoMethodError) end - + it "with a interpolated symbol" do @undef_class.class_eval do undef :"#{'meth'}" |