blob: 3fe997d02a654cf2a9f759711292cadaf3bfaebb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require_relative '../../spec_helper'
describe "Symbol#==" do
it "only returns true when the other is exactly the same symbol" do
(:ruby == :ruby).should == true
(:ruby == :"ruby").should == true
(:ruby == :'ruby').should == true
(:@ruby == :@ruby).should == true
(:ruby == :@ruby).should == false
(:foo == :bar).should == false
(:ruby == 'ruby').should == false
end
end
|