Sha256: fb2d4e0c9fef12f04a30f40eab312372713e14ba970b0a6318ec0bc73500af39
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require_relative '../test-util' describe 'Model::PioneBoolean' do before do @true = PioneBoolean.new(true) @false = PioneBoolean.new(false) end it 'should get pione true object' do PioneBoolean.true.should.true PioneBoolean.false.should.false end it 'should equal' do @true.should == PioneBoolean.true @false.should == PioneBoolean.false end it 'should not equal' do @true.should.not == PioneBoolean.false @false.should.not == PioneBoolean.true end it 'should and' do PioneBoolean.and(PioneBoolean.true, PioneBoolean.true).should.true PioneBoolean.and(PioneBoolean.true, PioneBoolean.false).should.false PioneBoolean.and(PioneBoolean.false, PioneBoolean.true).should.false PioneBoolean.and(PioneBoolean.false, PioneBoolean.false).should.false end it 'should or' do PioneBoolean.or(PioneBoolean.true, PioneBoolean.true).should.true PioneBoolean.or(PioneBoolean.true, PioneBoolean.false).should.true PioneBoolean.or(PioneBoolean.false, PioneBoolean.true).should.true PioneBoolean.or(PioneBoolean.false, PioneBoolean.false).should.false end test_pione_method("boolean") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pione-0.2.2 | test/model/spec_boolean.rb |
pione-0.2.1 | test/model/spec_boolean.rb |
pione-0.2.0 | test/model/spec_boolean.rb |