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
paperclip-v2_7-patched-ruby-1_8_6-2.7.5 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.5.4 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.5.3 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.5.2 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.5.1 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.5.0 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.4.2 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.4.1 test/matchers/have_attached_file_matcher_test.rb
paperclip-2.7.5 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.4.0 test/matchers/have_attached_file_matcher_test.rb
paperclip-2.7.4 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.3.1 test/matchers/have_attached_file_matcher_test.rb
paperclip-2.7.2 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.2.1 test/matchers/have_attached_file_matcher_test.rb
paperclip-2.8.0 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.3.0 test/matchers/have_attached_file_matcher_test.rb
paperclip-2.7.1 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.2.0 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.1.4 test/matchers/have_attached_file_matcher_test.rb
paperclip-3.1.2 test/matchers/have_attached_file_matcher_test.rb