diff options
Diffstat (limited to 'spec/rubyspec/core/symbol/shared/id2name.rb')
-rw-r--r-- | spec/rubyspec/core/symbol/shared/id2name.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/rubyspec/core/symbol/shared/id2name.rb b/spec/rubyspec/core/symbol/shared/id2name.rb new file mode 100644 index 0000000000..47f97bd332 --- /dev/null +++ b/spec/rubyspec/core/symbol/shared/id2name.rb @@ -0,0 +1,9 @@ +describe :symbol_id2name, shared: true do + it "returns the string corresponding to self" do + :rubinius.send(@method).should == "rubinius" + :squash.send(@method).should == "squash" + :[].send(@method).should == "[]" + :@ruby.send(@method).should == "@ruby" + :@@ruby.send(@method).should == "@@ruby" + end +end |