1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-21 15:54:22 +01:00
fab-manager/test/test_helper.rb

25 lines
566 B
Ruby
Raw Normal View History

2016-03-23 18:39:41 +01:00
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 })]
2016-03-23 18:39:41 +01:00
class ActiveSupport::TestCase
# Add more helper methods to be used by all tests here...
fixtures :all
2016-04-05 09:51:12 +02:00
def json_response(body)
JSON.parse(body, symbolize_names: true)
end
end
class ActionDispatch::IntegrationTest
include Warden::Test::Helpers
Warden.test_mode!
2016-03-23 18:39:41 +01:00
end