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