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-4.0.3 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-4.0.2 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-4.0.1 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-4.0.0 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-3.0.2 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-3.0.1 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-3.0.0 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-3.0.0.alpha1 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.36 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.35 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.34 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.33 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.32 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.31 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.30 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.29 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.28 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.27 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.26 lib/generators/authentication/templates/test_unit/test_helper.rb.tt
authentication-zero-2.16.25 lib/generators/authentication/templates/test_unit/test_helper.rb.tt