```ruby
require 'spec_helper'

describe 'custom attributes' do

  #module Coercible
    #class Coercer
      #class RegularExpression < Object
        #primitive RegExp
      #end
    #end
  #end

  before do
    module Examples
      class UpperCase < Virtus::Attribute::Object
        primitive String
        coercion_method :to_upcase

        def coerce(value)
          super.upcase
        end
      end

      class RegularExpression < Virtus::Attribute::Object
        primitive Regexp
      end

      class User
        include Virtus

        attribute :name, String
        attribute :scream, UpperCase
        attribute :expression, RegularExpression
      end
    end
  end

  subject { Examples::User.new }

  specify 'allows you to define custom attributes' do
    regexp = /awesome/
    subject.expression = regexp
    subject.expression.should == regexp
  end

  specify 'allows you to define coercion methods' do
    subject.scream = 'welcome'
    subject.scream.should == 'WELCOME'
  end

end
```

Remove obsolete code from spec
user
```ruby
require 'spec_helper'

describe 'custom attributes' do

  before do
    module Examples
      class UpperCase < Virtus::Attribute::Object
        primitive String
        coercion_method :to_upcase

        def coerce(value)
          super.upcase
        end
      end

      class RegularExpression < Virtus::Attribute::Object
        primitive Regexp
      end

      class User
        include Virtus

        attribute :name, String
        attribute :scream, UpperCase
        attribute :expression, RegularExpression
      end
    end
  end

  subject { Examples::User.new }

  specify 'allows you to define custom attributes' do
    regexp = /awesome/
    subject.expression = regexp
    subject.expression.should == regexp
  end

  specify 'allows you to define coercion methods' do
    subject.scream = 'welcome'
    subject.scream.should == 'WELCOME'
  end

end
```
assistant