diff options
Diffstat (limited to 'spec/ruby/core/symbol/case_compare_spec.rb')
-rw-r--r-- | spec/ruby/core/symbol/case_compare_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/core/symbol/case_compare_spec.rb b/spec/ruby/core/symbol/case_compare_spec.rb new file mode 100644 index 0000000000..5c705c0b04 --- /dev/null +++ b/spec/ruby/core/symbol/case_compare_spec.rb @@ -0,0 +1,11 @@ +require File.expand_path('../../../spec_helper', __FILE__) + +describe "Symbol#===" do + it "returns true when the argument is a Symbol" do + (Symbol === :ruby).should == true + end + + it "returns false when the argument is a String" do + (Symbol === 'ruby').should == false + end +end |