Sha256: 78ed912b10bd85757e798896240c39c00a538e3bc3165de80cca95d23484e693

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Attribute, '#name' do
  subject { object.name }

  let(:described_class) { Class.new(Attribute)      }
  let(:object)          { described_class.new(name) }

  context 'when name is a Symbol' do
    let(:name) { :name }

    it { should equal(name) }
  end

  context 'when name is a String' do
    let(:name) { 'name' }

    it { should be_instance_of(Symbol) }

    it { should == :name }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/attribute/name_spec.rb