Sha256: 7631866c176049f99471c18b7b8e6d605fd449bbc0b1e05875c72febd42eb049
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
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 it 'should be randomly booolean' do 1.is_boolean?.should be_false 'true'.is_boolean?.should be_false :true.is_boolean?.should be_false 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 it 'should be boolean' do true.is_boolean?.should be_true end it 'should intern properly' do true.intern.should == :true 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 it 'should be boolean' do false.is_boolean?.should be_true end it 'should intern properly' do false.intern.should == :false end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
darkhelmet-darkext-0.12.0 | spec/boolean_spec.rb |
darkext-0.12.0 | spec/boolean_spec.rb |