[rspec-users] testing controllers using cucumber
lists at ruby-forum.com
Fri Jan 29 06:53:04 EST 2010
Is there any way to test controllers using cucumber.
I was doing it with rspec but since cucumber's description is good how
can i proceed testing it with cucumber?
I have a scenario of user creation like
Feature: User Scenarios
Scenario: Successfull creation of user
Given a new user
When the user fill all the mandatory details
Then that user should get created
And success message should get displayed and email should be sent
In step definition:
Given /^a new user$/ do
When /^the user fill all the mandatory details$/ do
When /^that user should get created$/ do
Then /^success message should get displayed and email should be sent for
In this how i need to call the users controller and in that create
Also i searched in the net but didn't found any examples for cucumber
Posted via http://www.ruby-forum.com/.
More information about the rspec-users