Sha256: 2aca6ebdf34cb2fb258b98008ac8a80110df3ed5b6d15a90746f52735b587df0

Contents?: true

Size: 405 Bytes

Versions: 27

Compression:

Stored size: 405 Bytes

Contents

# encoding: utf-8

Given /^the file '(.*?)' is cached file at '(.*?)'$/ do |file, cached|
  FileUtils.mkdir_p(File.dirname(file_path(cached)))
  FileUtils.cp(file_path(file), file_path(cached))
end

When /^I cache the file '(.*?)'$/ do |file|
  @uploader.cache!(File.open(file_path(file)))
end

When /^I retrieve the cache name '(.*?)' from the cache$/ do |name|
  @uploader.retrieve_from_cache!(name)
end

Version data entries

27 entries across 27 versions & 6 rubygems

Version Path
durran-carrierwave-0.3.2.3 features/step_definitions/caching_steps.rb
jnicklas-carrierwave-0.3.3 features/step_definitions/caching_steps.rb
thorsson_carrierwave-0.4.12 features/step_definitions/caching_steps.rb
thorsson_carrierwave-0.4.11 features/step_definitions/caching_steps.rb
thorsson_carrierwave-0.4.10 features/step_definitions/caching_steps.rb
thorsson_carrierwave-0.4.9 features/step_definitions/caching_steps.rb
thorsson_carrierwave-0.4.8 features/step_definitions/caching_steps.rb
thorsson_carrierwave-0.4.6 features/step_definitions/caching_steps.rb
thorsson_carrierwave-0.4.5 features/step_definitions/caching_steps.rb
samlown-carrierwave-0.4.5 features/step_definitions/caching_steps.rb
dsturnbull-carrierwave-0.4.9 features/step_definitions/caching_steps.rb
dsturnbull-carrierwave-0.4.8 features/step_definitions/caching_steps.rb
dsturnbull-carrierwave-0.4.7 features/step_definitions/caching_steps.rb
carrierwave-0.4.5 features/step_definitions/caching_steps.rb
dsturnbull-carrierwave-0.4.6 features/step_definitions/caching_steps.rb
dsturnbull-carrierwave-0.4.5 features/step_definitions/caching_steps.rb
carrierwave-0.4.4 features/step_definitions/caching_steps.rb
durran-carrierwave-0.4.3 features/step_definitions/caching_steps.rb
carrierwave-0.4.3 features/step_definitions/caching_steps.rb
carrierwave-0.4.2 features/step_definitions/caching_steps.rb