mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
* Add PagesControllerTest with authentication * Rubocop fixes * Move sign_in to setup block * Remove instance variable
18 lines
517 B
Ruby
18 lines
517 B
Ruby
ENV["RAILS_ENV"] ||= "test"
|
|
require_relative "../config/environment"
|
|
require "rails/test_help"
|
|
|
|
module ActiveSupport
|
|
class 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...
|
|
def sign_in(user)
|
|
post session_path, params: { email: user.email, password: "password" }
|
|
end
|
|
end
|
|
end
|