Sha256: 04b4f4e904f73432fc0a5989e5ce7fd2e6d9b0aca5d3ca60c0434c8b57930b8c

Contents?: true

Size: 656 Bytes

Versions: 4

Compression:

Stored size: 656 Bytes

Contents

require 'spec_helper'
module Alf
  module Algebra
    describe Project do

      let(:operator_class){ Project }

      it_should_behave_like("An operator class")

      context "--no-allbut" do
        subject{ a_lispy.project(an_operand, [:a]) }

        it { should be_a(Project) }

        it 'is !allbut by default' do
          subject.allbut.should be_false
        end
      end # --no-allbut

      context "--allbut" do
        subject{ a_lispy.project(an_operand, [:a], :allbut => true) }

        it { should be_a(Project) }

        it 'is allbut' do
          subject.allbut.should be_true
        end
      end # --allbut

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-algebra/operator/test_project.rb
alf-core-0.14.0 spec/unit/alf-algebra/operator/test_project.rb
alf-core-0.13.1 spec/unit/alf-algebra/operator/test_project.rb
alf-core-0.13.0 spec/unit/alf-algebra/operator/test_project.rb