Sha256: 8b1359598912196f6e109698d87ab96d14e2a08091686d9eddba62cb49635af3

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 Bytes

Contents

require 'spec_helper'
module Domain
  describe Union, "super_domain_of?" do

    it 'returns true when a super domain' do
      Boolean.should be_super_domain_of(TrueClass)
    end

    it 'returns false on itself' do
      Boolean.should_not be_super_domain_of(Boolean)
    end

    it 'returns false when not a super domain' do
      Boolean.should_not be_super_domain_of(Integer)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
domain-1.0.0.rc2 spec/factory/union_domain/test_super_domain_of.rb
domain-1.0.0.rc1 spec/factory/union_domain/test_super_domain_of.rb