Sha256: 28d4c46ba1902195147df0f3be83ca27310e6aa5818b69d7ee116f0cad1e9522
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
require 'test_helper' class ActiveModelSerializers::LoggerTest < Minitest::Test def test_logger_is_set_to_action_controller_logger_when_initializer_runs assert_equal ActiveModelSerializers.logger, ActionController::Base.logger end def test_logger_can_be_set original_logger = ActiveModelSerializers.logger logger = Logger.new(STDOUT) ActiveModelSerializers.logger = logger assert_equal ActiveModelSerializers.logger, logger ensure ActiveModelSerializers.logger = original_logger end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.10.0.rc3 | test/logger_test.rb |