Skip to content

Commit

Permalink
Add cucumber: User clicks vurl
Browse files Browse the repository at this point in the history
  • Loading branch information
veezus committed May 17, 2011
1 parent cc0bef3 commit 890dc14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/support/paths.rb
Expand Up @@ -11,6 +11,9 @@ def path_to(page_name)
when /the home\s?page/
'/'

when /^that vurl's redirect page$/
redirect_path(@vurl.slug)

# Add more mappings here.
# Here is an example that pulls values out of the Regexp:
#
Expand Down
7 changes: 7 additions & 0 deletions features/user_clicks_vurl.feature
@@ -0,0 +1,7 @@
Feature: User clicks vurl

Scenario: when flagged as spam
Given the following vurl:
| status | flagged_as_spam |
When I go to that vurl's redirect page
Then I should see "Flagged as spam"

0 comments on commit 890dc14

Please sign in to comment.