Sha256: aac6e6d07ecb7d63dd9d91f3e9c2065f0ef0b31b09d51342577c0ca3f3002ba6

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

require 'spec_helper'
module Finitio
  describe TypeFactory, "DSL#any" do

    let(:factory){ TypeFactory.new }

    context 'without a name' do
      subject do
        factory.any
      end

      it{ should be_a(AnyType) }
    end

    context 'with a name' do
      subject do
        factory.any("foo")
      end

      it{ should be_a(AnyType) }

      it 'should have the name' do
        subject.name.should eq('foo')
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finitio-0.4.1 spec/unit/type_factory/dsl/test_any.rb
finitio-0.4.0 spec/unit/type_factory/dsl/test_any.rb