Permalink
Browse files

Add a cucumber test for the main page.

  • Loading branch information...
1 parent 6472c0a commit e85c4a5b1b4f1011906df93e21ec74fc759c8586 @leenookx committed Aug 17, 2009
Showing with 19 additions and 7 deletions.
  1. +8 −0 features/homepage.feature
  2. +7 −7 features/rssfeeds.feature
  3. +4 −0 features/step_definitions/homepage_steps.rb
@@ -0,0 +1,8 @@
+Feature: The main page.
+ Given that this is a ruby on rails app
+ As a user
+ I should be able to visit the main page
+
+ Scenario: visit homepage
+ Given that I am on the homepage
+ Then I should see "Semantix"
View
@@ -1,10 +1,10 @@
Feature: rss_feeds
-In order to keep up with the news
-Users should be able to
-Specify and manage RSS feeds
+ In order to keep up with the news
+ Users should be able to
+ Specify and manage RSS feeds
-Scenario: Add feed
-Given that the user wants to add a feed
-When the user enters the feed details
-Then the system should save them
+ Scenario: Add feed
+ Given that the user wants to add a feed
+ When the user enters the feed details
+ Then the system should save them
@@ -0,0 +1,4 @@
+Given /^that I am on the homepage$/ do
+ visit "/"
+end
+

0 comments on commit e85c4a5

Please sign in to comment.