Sha256: 7776d45e03ae6e40fe0c6e5cfb5081ea1190fc0fcd076d9fe2b84ba26f2fe7f6
Contents?: true
Size: 704 Bytes
Versions: 3
Compression:
Stored size: 704 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe Object do it 'should respond to the new method' do Object.new.should respond_to(*%w(is_boolean?)) end it 'should return a boolean from is_boolean' do true.is_boolean?.is_boolean?.should be_true end end describe TrueClass do it 'should respond to the new method' do true.should respond_to(*%w(intern)) end it 'should return a symbol from intern' do true.intern.should be_a_kind_of(Symbol) end end describe FalseClass do it 'should respond to the new method' do false.should respond_to(*%w(intern)) end it 'should return a symbol from intern' do false.intern.should be_a_kind_of(Symbol) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
darkhelmet-darkext-0.11.0 | spec/boolean_spec.rb |
darkhelmet-darkext-0.11.1 | spec/boolean_spec.rb |
darkhelmet-darkext-0.11.2 | spec/boolean_spec.rb |