Sha256: ac4ede91a75355e5b5a518eac2a9cc8a50cd42f9d69c97127163c48e411ff61a

Contents?: true

Size: 585 Bytes

Versions: 3

Compression:

Stored size: 585 Bytes

Contents

shared_examples_for 'a domain class' do

  it{ should be_a(Class)  }

  it{ should respond_to(:third_party_extension) }

  context 'comparisons' do

    it 'should compare with itself' do
      (subject <=> subject).should eq(0)
    end

    it 'should <= with itself' do
      (subject <= subject).should be_true
    end

    it 'should < with itself' do
      (subject < subject).should be_false
    end

    it 'should >= with itself' do
      (subject >= subject).should be_true
    end

    it 'should > with itself' do
      (subject > subject).should be_false
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
domain-1.0.0 spec/shared/a_domain_class.rb
domain-1.0.0.rc4 spec/shared/a_domain_class.rb
domain-1.0.0.rc3 spec/shared/a_domain_class.rb