Sha256: 46ccca746ec792f66709f219d4e85a07477e096a78ea40b15fe3d362616059a1

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

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

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

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

      it { should eq([Heading[id: Integer], Heading[name: String]]) }
    end

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

      it { should eq([Heading[name: String], Heading[id: Integer]]) }
    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_split.rb
alf-core-0.14.0 spec/unit/alf-types/heading/test_split.rb
alf-core-0.13.1 spec/unit/alf-types/heading/test_split.rb
alf-core-0.13.0 spec/unit/alf-types/heading/test_split.rb