summaryrefslogtreecommitdiff
path: root/spec/ruby/core/symbol/empty_spec.rb
blob: 7be00073557a2e966a7bf15b76580cff2b663cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
require File.expand_path('../../../spec_helper', __FILE__)

describe "Symbol#empty?" do
  it "returns true if self is empty" do
    :"".empty?.should be_true
  end

  it "returns false if self is non-empty" do
    :"a".empty?.should be_false
  end
end