Sha256: a4a2e61849e036c0078759777f736e9fd8aa5265ab624b5af5a38fa357c1bcea

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

require 'spec_helper'
module Alf
  describe Heading, "project" do

    let(:heading){ Heading[:id => Integer, :name => String] }

    context 'without allbut' do
      subject{ heading.project([:id]) }

      it { should eq(Heading[:id => Integer]) }
    end

    context 'with allbut' do
      subject{ heading.project([:id], true) }

      it { should eq(Heading[:name => String]) }
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-types/heading/test_project.rb
alf-core-0.14.0 spec/unit/alf-types/heading/test_project.rb
alf-core-0.13.1 spec/unit/alf-types/heading/test_project.rb
alf-core-0.13.0 spec/unit/alf-types/heading/test_project.rb