summaryrefslogtreecommitdiff
path: root/spec/ruby/core/symbol/empty_spec.rb
blob: 19c23cfe5f5c1dd5b361b6013da238df66f1caba (plain)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../../spec_helper'

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