Skip to content

Commit

Permalink
lazy load rspec-core
Browse files Browse the repository at this point in the history
Fix #3
  • Loading branch information
willnet committed Dec 6, 2022
1 parent fbec99e commit 3e402c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/ci_logger.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require "ci_logger/version"
require "ci_logger/railtie"
require "ci_logger/logger"
require "ci_logger/rspec_formatter"

module CiLogger
end
1 change: 1 addition & 0 deletions lib/ci_logger/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Railtie < ::Rails::Railtie
config.before_initialize do
if config.ci_logger.enabled
Rails.logger = CiLogger::Logger.new(Rails.logger)
require "ci_logger/rspec_formatter"

RSpec.configure do |config|
config.add_formatter 'progress' if config.formatters.empty?
Expand Down

0 comments on commit 3e402c5

Please sign in to comment.