Sha256: cd1fe19baf55428007f513cb01ed06a9ee294244599227dbd2882baa4e03cc42

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

require './test/helper'

class MediaTypeSpoofDetectionValidatorTest < Test::Unit::TestCase
  def setup
    rebuild_model
    @dummy = Dummy.new
  end

  should "be on the attachment without being explicitly added" do
    assert Dummy.validators_on(:avatar).any?{ |validator| validator.kind == :media_type_spoof_detection }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paperclip-4.1.0 test/validators/media_type_spoof_detection_validator_test.rb
paperclip-4.0.0 test/validators/media_type_spoof_detection_validator_test.rb