Sha256: c7fd45e7e0aca38162b94a2d1122cac87e0bc8445ddfcb3bd8517ea9f21451c5

Contents?: true

Size: 610 Bytes

Versions: 16

Compression:

Stored size: 610 Bytes

Contents

###
# Make CarrierWave tests faster and more reliable
#
if defined? CarrierWave
  require 'carrierwave/test/matchers'

  CarrierWave.configure do |config|
    config.storage           = :file
    config.root              = Rails.root.join('tmp')
    config.enable_processing = false
  end

  RSpec.configure do |config|
    config.include CarrierWave::Test::Matchers, :carrier_wave => true

    config.before(:each, :carrier_wave => true) do
      subject.class.enable_processing = true
    end

    config.after(:each, :carrier_wave => true) do
      subject.class.enable_processing = false
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rspectacular-0.12.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.11.1 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.11.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.10.1 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.10.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.9.2 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.9.1 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.9.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.8.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.7.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.6.1 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.5.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.4.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.3.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.2.0 lib/rspectacular/plugins/carrier_wave.rb
rspectacular-0.1.0 lib/rspectacular/plugins/carrier_wave.rb