Sha256: e07167d2a1d560741e3bca8386352338c6c6b0b0375c44f1703c841911bbae92

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

require 'spec_helper'
describe Domain, "sbyc" do

  subject{ Domain.sbyc(Integer){|i| i > 0} }

  it_should_behave_like 'a domain class'

  it 'should recognize positive integers' do
    (subject === 10).should be_true
  end

  it 'should not recognize negative integers' 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_sbyc.rb
domain-1.0.0.rc4 spec/factory/test_sbyc.rb
domain-1.0.0.rc3 spec/factory/test_sbyc.rb
domain-1.0.0.rc2 spec/factory/test_sbyc.rb
domain-1.0.0.rc1 spec/factory/test_sbyc.rb