Sha256: fd679349f96870c580430825cee45417ca2c587dd6a2b20ef112471395cd7d18
Contents?: true
Size: 542 Bytes
Versions: 32
Compression:
Stored size: 542 Bytes
Contents
require 'spec_helper' require 'paperclip/matchers' describe Paperclip::Shoulda::Matchers::HaveAttachedFileMatcher do extend Paperclip::Shoulda::Matchers it "rejects the dummy class if it has no attachment" do reset_table "dummies" reset_class "Dummy" matcher = self.class.have_attached_file(:avatar) expect(matcher).to_not accept(Dummy) end it 'accepts the dummy class if it has an attachment' do rebuild_model matcher = self.class.have_attached_file(:avatar) expect(matcher).to accept(Dummy) end end
Version data entries
32 entries across 30 versions & 6 rubygems