README.md in paperclip-storage-tmp-0.0.3 vs README.md in paperclip-storage-tmp-0.0.4
- old
+ new
@@ -98,10 +98,11 @@
Here are a couple of specs, which expose the expected behaviour of this gem. The spec markes with `# FAIL` exposes the caveat:
describe User do
describe 'avatar' do
- let(:user) { User.create!(avatar: File.new('spec/fixtures/hey_mom_its_me.png')) }
+ let(:avatar_file) { File.new('spec/fixtures/hey_mom_its_me.png') }
+ let(:user) { User.create!(avatar: avatar_file) }
subject { user.avatar }
it { should exist }
its(:content_type) { should eq('image/png') }
its(:original_filename) { should eq('hey_mom_its_me.png') }