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

Version Path
authentication-zero-2.16.24 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.23 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.22 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.21 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.20 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.19 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.18 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.17 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.16 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.15 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.14 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.13 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.12 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.11 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.10 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.9 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.8 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.7 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.6 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.5 lib/generators/authentication/templates/test_unit/test_helper.rb.tt