Displaying 1 result from an estimated 1 matches for "3_products".
Did you mean:
e_products
2009 Nov 10
4
Model spec for file upload with paperclip and fastercsv
...end
end
/////////import_spec.rb/////////////////
require ''spec_helper''
describe Import do
it "should should succeed creating a valid Import from the factory" do
import = Factory.build(:import)
import.csv.stub!(:url).and_return("#{RAILS_ROOT}/spec/csv/3_products.csv")
import.save
end
describe "handling CSV files" do
describe "to import products" do
before(:each) do
@import = Factory.build(:import)
@import.csv.stub!(:url).and_return("#{RAILS_ROOT}/spec/csv/3_products.csv")
end...