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

Version Path
whitby3001-paperclip-cloudfiles-2.3.8.1 test/matchers/have_attached_file_matcher_test.rb
organicinternet-paperclip-2.3.8.1 test/matchers/have_attached_file_matcher_test.rb
arielvalentin-paperclip-2.3.6 test/matchers/have_attached_file_matcher_test.rb
paperclip-cloudfiles-2.3.8.1 test/matchers/have_attached_file_matcher_test.rb
twm_paperclip-2.3.8t test/matchers/have_attached_file_matcher_test.rb
reenhanced-paperclip-2.3.8 test/matchers/have_attached_file_matcher_test.rb
paperclip-cloudfiles-2.3.8 test/matchers/have_attached_file_matcher_test.rb
paperclip-2.3.8 test/matchers/have_attached_file_matcher_test.rb
paperclip-2.3.7 test/matchers/have_attached_file_matcher_test.rb
twm_paperclip-2.3.6b test/matchers/have_attached_file_matcher_test.rb
twm_paperclip-2.3.6 test/matchers/have_attached_file_matcher_test.rb
paperclip-2.3.6 test/matchers/have_attached_file_matcher_test.rb