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/.
__
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
will do
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
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 (