Sha256: a9858b553943f2d11bf237e35e1ce40b93c47f50712108dbf21ce7f1da48de40

Contents?: true

Size: 638 Bytes

Versions: 4

Compression:

Stored size: 638 Bytes

Contents

require 'spec_helper'
module Alf
  module Algebra
    describe Clip do

      let(:operator_class){ Clip }

      it_should_behave_like("An operator class")

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

        it { should be_a(Clip) }

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

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

        it { should be_a(Clip) }

        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_clip.rb
alf-core-0.14.0 spec/unit/alf-algebra/operator/test_clip.rb
alf-core-0.13.1 spec/unit/alf-algebra/operator/test_clip.rb
alf-core-0.13.0 spec/unit/alf-algebra/operator/test_clip.rb