Sha256: 89344dd5f5c297c9cf56c6cd7ad29aee0a87755f592dd7b1dbd84c44c9ad1c69

Contents?: true

Size: 470 Bytes

Versions: 4

Compression:

Stored size: 470 Bytes

Contents

require 'test_helper'

class ServeStaticAssets < ActiveSupport::TestCase
  test "truth" do
    assert_kind_of Module, RailsStdoutLogging
  end

  test "Active Record" do
    str = "#{Time.now} ActiveRecord logs to stdout"
    ActiveRecord::Base.logger.info(str)
    assert_match str, STDOUT.string
  end

  test "Action Mailer" do
    str = "#{Time.now} ActionMailer logs to stdout"
    ActionMailer::Base.logger.info(str)
    assert_match str, STDOUT.string
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_stdout_logging-0.0.5 test/rails_stdout_logging_test.rb
rails_stdout_logging-0.0.4 test/rails_stdout_logging_test.rb
rails_stdout_logging-0.0.3 test/rails_stdout_logging_test.rb
rails_stdout_logging-0.0.2 test/rails_stdout_logging_test.rb