-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revise position specs to match updated app design
- Loading branch information
1 parent
db297bf
commit 60b38e2
Showing
3 changed files
with
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.feature 'Positions Management', type: :feature do | ||
context 'create positions' do | ||
scenario 'a new position can be added to the db' | ||
scenario 'an existing position can be updated' | ||
scenario 'an existing position can be removed' | ||
scenario 'existing positions in the database can be listed' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.feature "User Management" type: :feature do | ||
scenario "user can view a list of positions add to their account" do | ||
@user = FactoryGirl.create(:user_with_positions) | ||
|
||
visit user_path(@user) | ||
expect(page).to have_content(@user.skills[0].name) | ||
expect(page).to have_content(@user.skills[1].name) | ||
end | ||
|
||
end | ||
end |