mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Configure NoBrainer to use the test environment
This is to prevent it from trying to connect to localhost during tests which causes errors shown here: https://github.com/michaeldv/awesome_print/pull/228#issuecomment-217092622
This commit is contained in:
parent
7234e441bb
commit
412d05242f
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,10 @@ RSpec.describe "AwesomePrint/NoBrainer", skip: ->{ !ExtVerifier.has_nobrainer? }
|
||||||
|
|
||||||
if ExtVerifier.has_nobrainer?
|
if ExtVerifier.has_nobrainer?
|
||||||
before :all do
|
before :all do
|
||||||
NoBrainer.configure { |c| c.app_name = "ap_test" }
|
NoBrainer.configure do |config|
|
||||||
|
config.app_name = "ap_test"
|
||||||
|
config.environment = :test
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
before :all do
|
before :all do
|
||||||
|
|
Loading…
Reference in a new issue