Sha256: 670b8d7a0b89eb3a89d8d027f77dd845ce4e6156f9089152e6c1cb69b65ebe23

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

require 'spec_helper'
module Qrb
  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

1 entries across 1 versions & 1 rubygems

Version Path
qrb-0.3.0 spec/unit/type_factory/dsl/test_any.rb