Sha256: 049c0da97ea86e5e70ffae4410cfffb341b98b4fa913902f8db63cbb1f37a6d6

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 Bytes

Contents

require 'spec_helper'
module Alf
  module Algebra
    describe Defaults do

      let(:operator_class){ Defaults }

      it_should_behave_like("An operator class")

      context "--no-strict" do
        subject{ a_lispy.defaults(an_operand, :a => 1, :c => "blue") }

        it{ should be_a(Defaults) }

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

      describe "--strict" do
        subject{ a_lispy.defaults(an_operand, {:a => 1, :c => "blue"}, :strict => true) }

        it{ should be_a(Defaults) }

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

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