Sha256: 8158960124ee9688d924e9bb76f3ce152375453d01633dcb385c29efb9328167

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

require 'spec_helper'
module Alf
  module Algebra
    describe Generator do

      let(:operator_class){ Generator }

      it_should_behave_like("An operator class")

      context "when providing a size and a name" do
        subject{ a_lispy.generator(2, :id) }

        it{ should be_a(Generator) }

        it 'has specified size and name' do
          subject.size.should eq(2)
          subject.as.should eq(:id)
        end
      end # size and name

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