Update capybara to last version

This commit is contained in:
Thibault Jouan
2014-04-01 05:18:19 +00:00
parent eda2f3fbee
commit 97c64d0990
6 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
require 'spec_helper'
feature 'Home page' do
include UserIntegrationHelpers
background do
sign_in
end
scenario 'displays playlists' do
playlist = FactoryGirl.create(:playlist, :name => 'Electro')
visit root_path
page.should have_content('Electro')
end
scenario 'displays last track added' do
FactoryGirl.create(:track,
:name => 'Mega song 1',
:created_at => '2011-07-27 19:13:42'
)
FactoryGirl.create(:track,
:name => 'Mega song 2',
:created_at => '2011-07-27 19:58:57'
)
visit root_path
page.body.should match(/Mega song 2.+Mega song 1/m)
end
end