Hello. I just started to use rspec stories. I followed the following
So I implemented my story and some of the steps are:
When "user creates a product" do
post "products/new", :name => @name
Then "there should be a product named '$name'" do |name|
When I run the story i get:
When user creates a product
Then there should be a product named 'Book' (PENDING)
1 scenarios: 0 succeeded, 0 failed, 1 pending
1) Creating a product (success): there should be a product named 'Book'
The problem is that there is no message for why the step is pending,
so how can i know how to fix that? I included "require 'ruby-debug'" in
my helper.rb, but it didn't help. Any ideas? Thanks.