Sha256: 74896c5c6448bbcbabfce5b16fac0e03f952821bf793d72d899483de1f4e589c

Contents?: true

Size: 352 Bytes

Versions: 32

Compression:

Stored size: 352 Bytes

Contents

require 'spec_helper'

describe Paperclip::EmptyStringAdapter do
  context 'a new instance' do
    before do
      @subject = Paperclip.io_adapters.for('')
    end

    it "returns false for a call to nil?" do
      assert !@subject.nil?
    end

    it 'returns false for a call to assignment?' do
      assert !@subject.assignment?
    end
  end
end

Version data entries

32 entries across 30 versions & 6 rubygems

Version Path
kt-paperclip-5.4.0 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
kt-paperclip-4.4.0 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-6.1.0 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-6.0.0 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-5.3.0 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-5.2.1 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-5.2.0 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paperclip-5.1.0/spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-5.1.0 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-5.0.0 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-4.3.7 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip_jk-5.0.0.beta2 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/paperclip-4.3.6/spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-5.0.0.beta2 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-5.0.0.beta1 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-4.3.6 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-4.3.5 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-4.3.4 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-4.3.3 spec/paperclip/io_adapters/empty_string_adapter_spec.rb
paperclip-4.3.2 spec/paperclip/io_adapters/empty_string_adapter_spec.rb