Fix coding standards in specs
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user