Refactor UAT helpers inclusion in specs
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
describe 'API application' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
describe 'ping endpoint' do
|
||||
before { get api_ping_path, format: :json }
|
||||
|
||||
|
@@ -1,6 +1,4 @@
|
||||
describe 'API cross origin request' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
let(:user) { api_sign_in }
|
||||
let(:origin) { 'http://origin.example/' }
|
||||
|
||||
|
@@ -1,6 +1,4 @@
|
||||
describe 'API playlists' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
before { api_sign_in }
|
||||
|
||||
it 'lists playlists' do
|
||||
|
@@ -1,6 +1,4 @@
|
||||
describe 'API sign in' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
let(:user) { create :user }
|
||||
|
||||
def do_create
|
||||
|
@@ -1,6 +1,4 @@
|
||||
describe 'API tracks' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
let(:track) { create :track_with_sound }
|
||||
let(:other_track) { create :track }
|
||||
|
||||
|
Reference in New Issue
Block a user