Sha256: 9efe30932f9da30c50672fbc4ead033c8d6284454aa69a46235df5f1afbdc607

Contents?: true

Size: 391 Bytes

Versions: 3

Compression:

Stored size: 391 Bytes

Contents

require 'spec_helper'
require 'cape/core_ext/symbol'

describe Symbol do
  it '-- when sent #<=> with a lower symbol -- should return 1' do
    (:foo <=> :bar).should == 1
  end

  it '-- when sent #<=> with a higher symbol -- should return -1' do
    (:baz <=> :qux).should == -1
  end

  it '-- when sent #<=> with itself -- should return 0' do
    (:quux <=> :quux).should == 0
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cape-1.7.0 spec/cape/core_ext/symbol_spec.rb
cape-1.6.2 spec/cape/core_ext/symbol_spec.rb
cape-1.6.1 spec/cape/core_ext/symbol_spec.rb