Sha256: 67fe2a09b90e0066fb39ee4cbe74e7918c42beec508c89b687bd3d48ec53924f

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'
describe Domain, "union" do

  subject{ Domain.union(TrueClass, FalseClass) }

  it_should_behave_like 'a domain class'

  it 'should recognize true and false' do
    (subject === true).should be_true
    (subject === false).should be_true
  end

  it 'should not recognize non booleans' do
    (subject === -10).should be_false
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
domain-1.0.0 spec/factory/test_union.rb
domain-1.0.0.rc4 spec/factory/test_union.rb
domain-1.0.0.rc3 spec/factory/test_union.rb
domain-1.0.0.rc2 spec/factory/test_union.rb
domain-1.0.0.rc1 spec/factory/test_union.rb