Sha256: 26756e2ca8bdb2037779c2c64861235131d94d326c6c89f47a7dd5c177cc5f52

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

require './test/helper'

class EmptyStringAdapterTest < Test::Unit::TestCase

  context 'a new instance' do
    setup do
      @subject = Paperclip.io_adapters.for('')
    end

    should "return false for a call to nil?" do
      assert !@subject.nil?
    end

    should 'return false for a call to assignment?' do
      assert !@subject.assignment?
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paperclip-4.1.1 test/io_adapters/empty_string_adapter_test.rb
paperclip-4.1.0 test/io_adapters/empty_string_adapter_test.rb
paperclip-3.5.4 test/io_adapters/empty_string_adapter_test.rb
paperclip-4.0.0 test/io_adapters/empty_string_adapter_test.rb
paperclip-3.5.3 test/io_adapters/empty_string_adapter_test.rb