Permalink
Browse files

User-Agent refactoring

  • Loading branch information...
1 parent e54a48e commit 2cebc66b2bde36320b8e2eeec474a45ad4e6ba4d @ArturG ArturG committed Feb 27, 2014
View
@@ -2,9 +2,6 @@ Feature: CRUD actions for answers
As a user of the site, I can perform standard CRUD actions on answers
- Background:
- Given "Mac" user agent
-
Scenario: Create an answer
And a question exists
And I answer that question
View
@@ -1,10 +1,7 @@
Feature: Hackety Blog
As an admin, I can post to the hackety blog.
-
- Background:
- Given "Mac" user agent
-
+
Scenario: Read the blog
Given a blog post exists
When I visit the blog
@@ -3,8 +3,7 @@ Feature: Moderate questions
As a moderator, I should be able to delete questions from the site.
Background:
- Given "Mac" user agent
- And there is a question from someone else
+ Given there is a question from someone else
Scenario: Delete a question
Given I am a moderator
@@ -2,9 +2,6 @@ Feature: Access Programs
As a user of the site, I want to access users' programs
- Background:
- Given "Mac" user agent
-
Scenario: View a featured program
Given there is a featured program
Then I should be able to view a highlighted program
@@ -2,9 +2,6 @@ Feature: CRUD actions for question
As a user of the site, I can perform standard CRUD actions on questions
- Background:
- Given "Mac" user agent
-
Scenario: Create a question
When I create a new question
Then I should be told the question was created
View
@@ -2,9 +2,6 @@ Feature: Sign up for an account
As a new Hackety user, I want to create a new account and log in with it
- Background:
- Given "Mac" user agent
-
Scenario: Create an account via the signup form
When I register a new account
Then I should be logged in with my new account
View
@@ -40,6 +40,7 @@
Before do
DatabaseCleaner[:mongo_mapper].clean
+ page.driver.header('User-Agent', "Mac")
end
# You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.
View
@@ -3,8 +3,7 @@ Feature: Manage account
As a user of this site, I can view and update my profile, see my followers
Background:
- Given "Mac" user agent
- And a logged in user
+ Given a logged in user
Scenario: View my profile
When I go to look at my profile page

0 comments on commit 2cebc66

Please sign in to comment.