mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +01:00
25 lines
566 B
Ruby
25 lines
566 B
Ruby
ENV['RAILS_ENV'] ||= 'test'
|
|
require File.expand_path('../../config/environment', __FILE__)
|
|
require 'rails/test_help'
|
|
require 'sidekiq/testing'
|
|
Sidekiq::Testing.fake!
|
|
|
|
require 'minitest/reporters'
|
|
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new({ color: true })]
|
|
|
|
|
|
class ActiveSupport::TestCase
|
|
# Add more helper methods to be used by all tests here...
|
|
|
|
fixtures :all
|
|
|
|
def json_response(body)
|
|
JSON.parse(body, symbolize_names: true)
|
|
end
|
|
end
|
|
|
|
class ActionDispatch::IntegrationTest
|
|
include Warden::Test::Helpers
|
|
Warden.test_mode!
|
|
end
|