This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddSmallBizFlagToUsers < ActiveRecord::Migration | ||
def change | ||
add_column :users, :small_business, :boolean, default: false, null: false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Feature: Small Business Vendors | ||
As an adminstrator | ||
I want to be able to identify small-business users | ||
So they can bid on restricted auctions | ||
|
||
Scenario: A user that is not a small business | ||
Given I am an administrator | ||
And there is a user in SAM.gov who is not a small business | ||
When I sign in | ||
And I visit the admin users page | ||
Then I should see a column labeled "Small Business?" | ||
And I should see "No" for the user in the "Small Business?" column | ||
|
||
Scenario: A user who is a small business | ||
Given I am an administrator | ||
And there is a user in SAM.gov who is a small business | ||
When I sign in | ||
And I visit the admin users page | ||
Then I should see a column labeled "Small Business?" | ||
And I should see "Yes" for the user in the "Small Business?" column | ||
|
||
Scenario: A user who is not in SAM.gov | ||
Given I am an administrator | ||
And there is a user who is not in SAM.gov | ||
When I sign in | ||
And I visit the admin users page | ||
Then I should see a column labeled "Small Business?" | ||
And I should see "N/A" for the user in the "Small Business?" column |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters