Sha256: 59068f95a00652a1d79fa6957d7b8d0938d456d6b40fc68450c6f4774da3d1fc

Contents?: true

Size: 553 Bytes

Versions: 5

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'
module Domain
  describe SByC, "===" do

    it 'returns true when a proper value' do
      (Boolean === true).should be_true
      (Boolean === false).should be_true
    end

    it 'returns false when not a value' do
      (Boolean === 1).should be_false
    end

    it 'returns false when a superclass value that satisfies the predicate' do
      (NegInt === -1).should be_true
    end

    it 'returns false when a superclass value that do not satisfy the predicate' do
      (NegInt === 1).should be_false
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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