Sha256: 3da85fe1541d73099e5321c5a6e00e3f3c1a2a107a26f77b805669629355a00c
Contents?: true
Size: 596 Bytes
Versions: 72
Compression:
Stored size: 596 Bytes
Contents
require './test/helper' class HaveAttachedFileMatcherTest < Test::Unit::TestCase context "have_attached_file" do setup do @dummy_class = reset_class "Dummy" reset_table "dummies" @matcher = self.class.have_attached_file(:avatar) end context "given a class with no attachment" do should_reject_dummy_class end context "given a class with an attachment" do setup do modify_table("dummies"){|d| d.string :avatar_file_name } @dummy_class.has_attached_file :avatar end should_accept_dummy_class end end end
Version data entries
72 entries across 72 versions & 17 rubygems