require 'perpetuity/attribute'

module Perpetuity
  describe Attribute do
    subject { Perpetuity::Attribute.new :article, Object }
    it 'has a name' do
      subject.name.should == :article
    end

    it 'has a type' do
      subject.type.should == Object
    end

    it 'can be embedded' do
      attribute = Perpetuity::Attribute.new :article, Object, embedded: true
      attribute.should be_embedded
    end
  end
end

require 'perpetuity/attribute'

module Perpetuity
  describe Attribute do
    subject { Attribute.new :article, Object }
    it 'has a name' do
      subject.name.should == :article
    end

    it 'has a type' do
      subject.type.should == Object
    end

    it 'can be embedded' do
      attribute = Attribute.new :article, Object, embedded: true
      attribute.should be_embedded
    end
  end
end

Remove explicit namespace from Attribute spec
Remove explicit namespace from Attribute spec

Unnecessary since the spec itself is wrapped in the namespace.
