Fix coding standards in specs

This commit is contained in:
Thibault Jouan
2015-05-01 15:57:26 +00:00
parent c1393b8f8f
commit cbacdd9fc1
8 changed files with 25 additions and 30 deletions

View File

@@ -8,10 +8,10 @@ feature 'Playlists CRUD' do
visit playlists_path
click_link playlist[:name]
fill_in 'Name', with: 'Rock'
fill_in 'Name', with: 'new playlist name'
click_button 'Save'
expect(current_path).to eq playlists_path
expect(page).to have_content 'Rock'
expect(page).to have_content 'new playlist name'
end
end

View File

@@ -11,7 +11,7 @@ feature 'User sign up' do
scenario 'creates the user' do
expect {
click_button 'Sign up'
}.to change(User, :count).by(1)
}.to change(User, :count).by 1
end
scenario 'redirects to the home page' do

View File

@@ -6,7 +6,7 @@ feature 'Tracks player' do
scenario 'includes a player in track page' do
track = create :track_with_sound
visit track_path(track)
visit track_path track
expect(page).to have_xpath "//audio[@src='#{sound_path track.sound}']"
end