Skip to content

Commit

Permalink
fixed merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenaweiss committed Mar 25, 2014
2 parents 232a174 + d41fcf2 commit 26bbbf4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
1 change: 0 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
</div>
<img src="http://i656.photobucket.com/albums/uu285/dixiepixie47/Disney%20Cartoons/Unicorn-psd31001.png" class="unicorn"/>
<header id="nav-bar"></header>
<%= current_user %>
<%= yield %>
<%= javascript_include_tag "http://cdn.craig.is/js/mousetrap/mousetrap.min.js?9d308" %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/welcome/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<button id='log-out' class="submit">Log Out</button>

<div class="page-header">
<h1>Let's Get Weird</h1>
<h1>Let's Get Weird </h1>
<button id="start-pause-timer">Start Timer</button>
<button id="reset-timer">Reset Timer</button>
<div class="list-songs">List Songs</div>
Expand Down
23 changes: 17 additions & 6 deletions spec/features/choose_row_sound.rb
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
2 changes: 1 addition & 1 deletion spec/features/user_can_sign_in.rb
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



Expand Down
12 changes: 6 additions & 6 deletions spec/features/user_can_sign_up.rb
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"
Expand Down

0 comments on commit 26bbbf4

Please sign in to comment.