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
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/.
__
In the example that is failing, "should build 3 new Products" you have:
it "should build 3 new Products" do
# I have to tag this pending, this results in a weird error I
don't have time for yet
# full stack testing with cucumber succeeds, human testing does too
# pend
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
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