Sha256: f600f252b8e18d1b9c13a3b30a536bc94e39c4532327f537423176f4a684c311

Contents?: true

Size: 670 Bytes

Versions: 27

Compression:

Stored size: 670 Bytes

Contents

# encoding: utf-8

When /^I assign the file '([^\']*)' to the '([^\']*)' column$/ do |path, column|
  @instance.send("#{column}=", File.open(file_path(path)))
end

Given /^the uploader class is mounted on the '([^\']*)' column$/ do |column|
  @mountee_klass.mount_uploader column.to_sym, @klass
end

When /^I retrieve the file later from the cache name for the column '([^\']*)'$/ do |column|
  new_instance = @instance.class.new
  new_instance.send("#{column}_cache=", @instance.send("#{column}_cache"))
  @instance = new_instance
end

Then /^the url for the column '([^\']*)' should be '([^\']*)'$/ do |column, url|
  @instance.send("#{column}_url").should == url
end

Version data entries

27 entries across 27 versions & 6 rubygems

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