Sha256: fb3498b63ada4889dd3afee236d43bc72463e85a348649e973bfcfa6dff50ac2

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

require 'spec_helper'
module Alf
  describe Relvar, 'type' do
    include Relvar

    def heading(*)
      Heading.new(sid: Integer, name: String)
    end

    subject{ type }

    it 'returns the expected type' do
      subject.should eq(Relation[heading])
    end

    it 'memoizes used instance' do
      subject.should be(type)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-relvar/shared/test_type.rb
alf-core-0.14.0 spec/unit/alf-relvar/shared/test_type.rb
alf-core-0.13.1 spec/unit/alf-relvar/shared/test_type.rb
alf-core-0.13.0 spec/unit/alf-relvar/shared/test_type.rb