Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
Move customer features to other feature files
Browse files Browse the repository at this point in the history
This way they stick closer to the user_verb_object format we are trying
  • Loading branch information
Jacob Harris committed Jul 6, 2016
1 parent d82b847 commit d53d534
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 45 deletions.
45 changes: 0 additions & 45 deletions features/admin_associates_customer_with_auction.feature

This file was deleted.

16 changes: 16 additions & 0 deletions features/admin_edits_auction.feature
Expand Up @@ -24,3 +24,19 @@ Feature: Admin edits auctions in the admins panel
When I click on the auction's title
Then I should see new content on the page

Scenario: Associating an auction with a customer
Given I am an administrator
And I sign in
And there is an open auction
And there is a customer
And I visit the auctions admin page

When I click to edit the auction
Then I should see a select box with all the customers in the system

When I select a customer on the form
And I click on the "Update" button
Then I expect the customer to have been saved

When I click to edit the auction
Then I should see the customer selected for the auction
10 changes: 10 additions & 0 deletions features/admin_views_auction.feature
Expand Up @@ -22,3 +22,13 @@ Feature: Admin views public auction pages
And there is an open auction
When I visit the auction page
Then I should not see an "Edit" link for the auction

Scenario: Seeing the customer on the auction page
Given I am an administrator
And I sign in
And there is an auction with an associated customer
When I visit the auction page
Then I should see the customer name on the page

When I visit the admin auction page for that auction
Then I should see the customer name on the page
10 changes: 10 additions & 0 deletions features/guest_views_auctions.feature
Expand Up @@ -27,3 +27,13 @@ Feature: Basic Auction Views
When I visit the home page
Then I should see a message about no auctions
And there should be meta tags for the index page for 0 open and 0 future auctions

Scenario: Public sees the auction customer
Given there is an auction with an associated customer
When I visit the auction page
Then I should see the customer name on the page

Scenario: Public should not see a customer label if it's not set
Given there is an open auction
When I visit the auction page
Then I should not see a label for the customer on the page

0 comments on commit d53d534

Please sign in to comment.