Sha256: ebd574b52e4391185be593be4337c7b6219b261bbed3b085494fd0f2769fc7ae
Contents?: true
Size: 708 Bytes
Versions: 64
Compression:
Stored size: 708 Bytes
Contents
ENV["RAILS_ENV"] ||= "test" require_relative "../config/environment" require "rails/test_help" class ActiveSupport::TestCase # Run tests in parallel with specified workers parallelize(workers: :number_of_processors) # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. fixtures :all # Add more helper methods to be used by all tests here... <%- if options.api? -%> def sign_in_as(user) post(sign_in_url, params: { email: user.email, password: "Secret1*3*5*" }); [user, response.headers["X-Session-Token"]] end <%- else -%> def sign_in_as(user) post(sign_in_url, params: { email: user.email, password: "Secret1*3*5*" }); user end <%- end -%> end
Version data entries
64 entries across 64 versions & 1 rubygems