Use one-liners in specs where possible
This commit is contained in:
@@ -3,9 +3,7 @@ require 'spec_helper'
|
||||
feature 'API playlists' do
|
||||
include UserIntegrationHelpers
|
||||
|
||||
background do
|
||||
api_sign_in
|
||||
end
|
||||
background { api_sign_in }
|
||||
|
||||
scenario 'creates playlist' do
|
||||
playlist = FactoryGirl.attributes_for :playlist
|
||||
|
@@ -3,9 +3,7 @@ require 'spec_helper'
|
||||
feature 'API tracks' do
|
||||
include UserIntegrationHelpers
|
||||
|
||||
background do
|
||||
api_sign_in
|
||||
end
|
||||
background { api_sign_in }
|
||||
|
||||
scenario 'lists tracks' do
|
||||
track_1 = FactoryGirl.create(:track_with_sound, name: 'Track 1')
|
||||
|
Reference in New Issue
Block a user