spec/mongoid-paperclip_spec.rb in mongoid-paperclip-0.0.11 vs spec/mongoid-paperclip_spec.rb in mongoid-paperclip-0.1.0

- old
+ new

@@ -36,6 +36,18 @@ user.update avatar: File.new('spec/support/avatar.png', 'rb'), icon: File.new('spec/support/avatar.png', 'rb') expect(user.avatar_file_name).to eq("avatar.png") expect(user.icon_file_name).to eq("avatar.png") end end + + describe "disable fingerprint" do + let(:user) { NoFingerprint.create } + + before do + user.update avatar: File.new('spec/support/avatar.png', 'rb') + end + + it "does not store a fingerprint" do + expect(user.attributes).to_not include('fingerprint') + end + end end