Sha256: 304856c09483db71a18e02b7d1f9951ea53caee485a521f70797f8f8e33312e9

Contents?: true

Size: 409 Bytes

Versions: 4

Compression:

Stored size: 409 Bytes

Contents

require 'spec_helper'
module Alf
  describe Relation, ".restrict bugs" do

    let(:arg){
      Relation([
        { sid: "S1", supplies: Relation(pid: ["P1", "P2"]) },
        { sid: "S5", supplies: Relation([]) }
      ])
    }

    context 'on Relation' do
      subject{ arg.restrict(sid: 'S5') }

      it 'does not raise a TypeError' do
        subject.should be_a(Relation)
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/regression/relation/test_restrict.rb
alf-core-0.14.0 spec/regression/relation/test_restrict.rb
alf-core-0.13.1 spec/regression/relation/test_restrict.rb
alf-core-0.13.0 spec/regression/relation/test_restrict.rb