spec/paperclip/attachment_processing_spec.rb in paperclip-5.0.0.beta2 vs spec/paperclip/attachment_processing_spec.rb in paperclip-5.0.0
- old
+ new
@@ -1,13 +1,11 @@
# encoding: utf-8
require 'spec_helper'
describe 'Attachment Processing' do
- context 'using validates_attachment_content_type' do
- before do
- rebuild_class
- end
+ before { rebuild_class }
+ context 'using validates_attachment_content_type' do
it 'processes attachments given a valid assignment' do
file = File.new(fixture_file("5k.png"))
Dummy.validates_attachment_content_type :avatar, content_type: "image/png"
instance = Dummy.new
attachment = instance.avatar