Re: [rspec-users] Model spec for file upload with paperclip and fastercsv

2009-11-11 Thread Ray K.
Here's a conclusion I'm drawing for myself. With little prior experience, there's only so much I could take with me from one read through the rspec book. Maybe it's time to read it again. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailin

Re: [rspec-users] Model spec for file upload with paperclip and fastercsv

2009-11-11 Thread Ray K.
Thanks for your input, I will try that later. The reason why I posted here is, that it felt all wrong to spec my model like this while writing it. It just wasn't behavior driven, but implementation driven. Ray -- Posted via http://www.ruby-forum.com/. __

Re: [rspec-users] Model spec for file upload with paperclip and fastercsv

2009-11-11 Thread Ray K.
Now I have another weird error. My Products doesn't save in the specs, but it does in cucumber tests and human tests. I'd be glad if someone could look into this. http://pastie.org/693611 Ray -- Posted via http://www.ruby-forum.com/. ___ rspec-users m

[rspec-users] Model spec for file upload with paperclip and fastercsv

2009-11-10 Thread Ray K.
I just started my ImportsController and was this was really the way to go: import.rb/ class Import < ActiveRecord::Base has_attached_file :csv validates_attachment_presence :csv after_save :process_csv private def process_csv FasterCSV.foreach( csv.path) do

Re: [rspec-users] cucumber table diff haml problem

2009-11-03 Thread Ray K.
will do -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] cucumber table diff haml problem

2009-11-03 Thread Ray K.
Inspired by the latest railscast I tried to do some table diffing: But my problem is that the haml generated table does not produce the same html as the erb generated one. And table diffing seems to depend on a rather specific html table format my table diff step: [code] Then /^I should see the (