Move rainbow monkey patch to String to spec_helper

This commit is contained in:
Gabriel Mazetto 2017-02-13 12:19:28 +01:00
parent f182ea4ea5
commit 442735978c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,4 @@
require 'spec_helper'
require 'rainbow/ext/string'
describe 'seed production settings', lib: true do
include StubENV

View File

@ -26,6 +26,9 @@ if ENV['CI'] && !ENV['NO_KNAPSACK']
Knapsack::Adapters::RSpecAdapter.bind
end
# require rainbow gem String monkeypatch, so we can test SystemChecks
require 'rainbow/ext/string'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }