VRFS-1465 fix tests

This commit is contained in:
Brian Smith 2014-04-04 00:47:07 -04:00
parent 981a7eb4e2
commit 5683b7386a
2 changed files with 4 additions and 8 deletions

View File

@ -4,8 +4,6 @@ describe "Bands", :js => true, :type => :feature, :capybara_feature => true do
subject { page }
before(:all) do
Capybara.javascript_driver = :poltergeist
Capybara.current_driver = Capybara.javascript_driver

View File

@ -2,11 +2,8 @@ require 'spec_helper'
describe "Feed", :js => true, :type => :feature, :capybara_feature => true do
let (:user) { FactoryGirl.create(:user_two_instruments) }
let (:user) { FactoryGirl.create(:user) }
before(:each) do
end
describe "sessions" do
@ -26,6 +23,7 @@ describe "Feed", :js => true, :type => :feature, :capybara_feature => true do
it "should render details" do
visit "/client#/feed"
find('.feed-details a.details').trigger(:click)
# confirm user avatar exists
@ -33,7 +31,6 @@ describe "Feed", :js => true, :type => :feature, :capybara_feature => true do
# confirm instrument icons exist
find("img[instrument-id=\"electric guitar\"]")
find("img[instrument-id=\"drums\"]")
end
# it "should render play widget" do
@ -44,6 +41,7 @@ describe "Feed", :js => true, :type => :feature, :capybara_feature => true do
describe "recordings" do
before(:each) do
MusicSessionHistory.delete_all
start_recording_with(user)
stop_recording
formal_leave_by(user)
@ -60,6 +58,7 @@ describe "Feed", :js => true, :type => :feature, :capybara_feature => true do
it "should render details" do
visit "/client#/feed"
find('.feed-details a.details').trigger(:click)
# confirm user avatar exists
@ -67,7 +66,6 @@ describe "Feed", :js => true, :type => :feature, :capybara_feature => true do
# confirm instrument icons exist
find("img[instrument-id=\"electric guitar\"]")
find("img[instrument-id=\"drums\"]")
end
# it "should render play widget" do