-
Notifications
You must be signed in to change notification settings - Fork 4
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
5 changed files
with
25 additions
and
15 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 |
---|---|---|
@@ -1,15 +1,26 @@ | ||
require 'spec_helper' | ||
|
||
describe "a user can select a specific sound for a row" do | ||
|
||
it "selects the sound for the first row" do | ||
before(:all) do | ||
Capybara.javascript_driver = :webkit | ||
end | ||
|
||
it "starts out with no rows" do | ||
visit root_path | ||
within ".sound-selection" do | ||
expect(page).to have_select('row0', 'Ping') | ||
end | ||
|
||
expect(page).to_not have_content("div.note") | ||
end | ||
|
||
# it "selects the sound for the first row", js: true do | ||
|
||
# visit root_path | ||
# find(".add-row").click | ||
# # save_and_open_page | ||
# within "div.all-sounds" do | ||
# find("li.sound-choices").first().click | ||
# expect(page).to have_content('div.note') | ||
# end | ||
|
||
# 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
describe "user can sign in" do | ||
visit root_path | ||
# visit root_path | ||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
require 'spec_helper' | ||
require 'capybara/rspec' | ||
|
||
describe "user can sign up" do | ||
before(:all) do | ||
Capybara.javascript_driver = :webkit | ||
end | ||
describe "user can sign up", js: true do | ||
# before(:all) do | ||
# Capybara.javascript_driver = :webkit | ||
# end | ||
|
||
it "can sign up", js: true do | ||
it "can sign up" do | ||
visit root_path | ||
|
||
find("h2#sign-up-link").click | ||
fill_in "signup-name", with: "Steve" | ||
fill_in "signup-email", with: "[email protected]" | ||
fill_in "signup-password", with: "swordfish" | ||
|