Refactor UAT helpers inclusion in specs
This commit is contained in:
parent
e940b3f246
commit
317c2b687f
@ -1,6 +1,4 @@
|
||||
feature 'Playlists CRUD' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
background { sign_in }
|
||||
|
||||
scenario 'edits playlist' do
|
||||
|
@ -1,6 +1,4 @@
|
||||
feature 'Sounds CRUD' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
background { sign_in }
|
||||
|
||||
scenario 'shows sound' do
|
||||
|
@ -1,6 +1,4 @@
|
||||
feature 'Tracks CRUD' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
background { sign_in }
|
||||
|
||||
scenario 'shows track' do
|
||||
|
@ -1,6 +1,4 @@
|
||||
feature 'Tracks player' do
|
||||
include AcceptanceHelpers
|
||||
|
||||
background { sign_in }
|
||||
|
||||
scenario 'includes a player in track page' do
|
||||
|
@ -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 }
|
||||
|
||||
|
@ -10,6 +10,8 @@ Spork.prefork do
|
||||
RSpec.configure do |config|
|
||||
config.backtrace_exclusion_patterns << /\/bundler\/gems\//
|
||||
config.include FactoryGirl::Syntax::Methods
|
||||
config.include AcceptanceHelpers, type: :feature
|
||||
config.include AcceptanceHelpers, type: :request
|
||||
config.infer_spec_type_from_file_location!
|
||||
config.use_transactional_fixtures = true
|
||||
config.after(:all) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user