I'm trying to verify that data entered in a form has been saved in the
database.
Scenario: User enters a bookmark URL
Given a bookmark 'http://www.gotapi.com/rubyrails'
When the user adds the bookmark
Then should redirect to '/'
And the page should contain 'http://www.gotapi.com/
Thanks! I will try this tomorrow.
Xtian
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Thanks Zach! It worked like a charm.
Finally I used:
Scenario: User enters a bookmark URL
When the user adds 'http://www.gotapi.com/rubyrails' as a bookmark
Then the database should have a bookmark with url
'http://www.gotapi.com/rubyrails'
And the page should contain 'http://www.