Sha256: ef76e23331d2389879aa4fc853f588f4c46daa1cbc9724e30526249ee13c51dc

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

require 'spec_helper'
module Qrb
  describe AnyType, "name" do

    subject{ type.name }

    context 'when not provided' do
      let(:type){ AnyType.new }

      it 'uses the default name' do
        subject.should eq("Any")
      end
    end

    context 'when provided' do
      let(:type){ AnyType.new("foo") }

      it 'uses the specified name' do
        subject.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/any_type/test_name.rb