Refactor UAT helpers inclusion in specs
This commit is contained in:
parent
e940b3f246
commit
317c2b687f
@ -1,6 +1,4 @@
|
|||||||
feature 'Playlists CRUD' do
|
feature 'Playlists CRUD' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
background { sign_in }
|
background { sign_in }
|
||||||
|
|
||||||
scenario 'edits playlist' do
|
scenario 'edits playlist' do
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
feature 'Sounds CRUD' do
|
feature 'Sounds CRUD' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
background { sign_in }
|
background { sign_in }
|
||||||
|
|
||||||
scenario 'shows sound' do
|
scenario 'shows sound' do
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
feature 'Tracks CRUD' do
|
feature 'Tracks CRUD' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
background { sign_in }
|
background { sign_in }
|
||||||
|
|
||||||
scenario 'shows track' do
|
scenario 'shows track' do
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
feature 'Tracks player' do
|
feature 'Tracks player' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
background { sign_in }
|
background { sign_in }
|
||||||
|
|
||||||
scenario 'includes a player in track page' do
|
scenario 'includes a player in track page' do
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
describe 'API application' do
|
describe 'API application' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
describe 'ping endpoint' do
|
describe 'ping endpoint' do
|
||||||
before { get api_ping_path, format: :json }
|
before { get api_ping_path, format: :json }
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
describe 'API cross origin request' do
|
describe 'API cross origin request' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
let(:user) { api_sign_in }
|
let(:user) { api_sign_in }
|
||||||
let(:origin) { 'http://origin.example/' }
|
let(:origin) { 'http://origin.example/' }
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
describe 'API playlists' do
|
describe 'API playlists' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
before { api_sign_in }
|
before { api_sign_in }
|
||||||
|
|
||||||
it 'lists playlists' do
|
it 'lists playlists' do
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
describe 'API sign in' do
|
describe 'API sign in' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
let(:user) { create :user }
|
let(:user) { create :user }
|
||||||
|
|
||||||
def do_create
|
def do_create
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
describe 'API tracks' do
|
describe 'API tracks' do
|
||||||
include AcceptanceHelpers
|
|
||||||
|
|
||||||
let(:track) { create :track_with_sound }
|
let(:track) { create :track_with_sound }
|
||||||
let(:other_track) { create :track }
|
let(:other_track) { create :track }
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@ Spork.prefork do
|
|||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.backtrace_exclusion_patterns << /\/bundler\/gems\//
|
config.backtrace_exclusion_patterns << /\/bundler\/gems\//
|
||||||
config.include FactoryGirl::Syntax::Methods
|
config.include FactoryGirl::Syntax::Methods
|
||||||
|
config.include AcceptanceHelpers, type: :feature
|
||||||
|
config.include AcceptanceHelpers, type: :request
|
||||||
config.infer_spec_type_from_file_location!
|
config.infer_spec_type_from_file_location!
|
||||||
config.use_transactional_fixtures = true
|
config.use_transactional_fixtures = true
|
||||||
config.after(:all) do
|
config.after(:all) do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user