[rspec-users] RSpec story failing because create is not rendering 'show'

Damian Jones lists at ruby-forum.com
Sat Sep 13 14:24:54 EDT 2008

Ok I got my story to pass by changing the follwing snippet

When /I create a product named (.*) described with (.*)/ do |name, 
  visits new_product_path
  fills_in "product[name]", :with => name
  fills_in "product[description]", :with => description
  clicks_button "Create"

don't know why it doesn't work with this:

fills_in :name, :with => name

Webrat api specs say it should
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list