Sha256: 7658a76b1c1af635127d8e2e4d1c0df6229a1a01e51c664ceb81ef7cc444ac3a

Contents?: true

Size: 459 Bytes

Versions: 26

Compression:

Stored size: 459 Bytes

Contents

require 'spec_helper'
class Predicate
  describe Identifier, "and_split" do

    let(:predicate){ Factory.identifier(:id) }
    let(:tautology){ Factory.tautology    }

    subject{ predicate.and_split(list) }

    context 'when included' do
      let(:list){ [:id, :name] }

      it{ should eq([predicate, tautology]) }
    end

    context 'when not include' do
      let(:list){ [:name] }

      it{ should eq([tautology, predicate]) }
    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
predicate-2.8.0 spec/nodes/identifier/test_and_split.rb
predicate-2.7.1 spec/nodes/identifier/test_and_split.rb
predicate-2.7.0 spec/nodes/identifier/test_and_split.rb
predicate-2.6.0 spec/nodes/identifier/test_and_split.rb
predicate-2.5.0 spec/nodes/identifier/test_and_split.rb
predicate-2.4.0 spec/nodes/identifier/test_and_split.rb
predicate-2.3.3 spec/nodes/identifier/test_and_split.rb
predicate-2.3.2 spec/nodes/identifier/test_and_split.rb
predicate-2.3.1 spec/nodes/identifier/test_and_split.rb
predicate-2.3.0 spec/nodes/identifier/test_and_split.rb
predicate-2.2.1 spec/nodes/identifier/test_and_split.rb
predicate-2.2.0 spec/nodes/identifier/test_and_split.rb
predicate-2.1.0 spec/nodes/identifier/test_and_split.rb
predicate-2.0.1 spec/nodes/identifier/test_and_split.rb
predicate-2.0.0 spec/nodes/identifier/test_and_split.rb
predicate-1.3.4 spec/nodes/identifier/test_and_split.rb
predicate-1.3.3 spec/nodes/identifier/test_and_split.rb
predicate-1.3.2 spec/nodes/identifier/test_and_split.rb
predicate-1.3.1 spec/nodes/identifier/test_and_split.rb
predicate-1.3.0 spec/nodes/identifier/test_and_split.rb