1
0
Fork 0
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:
Gerard Caulfield 2016-05-05 20:12:23 +10:00
parent 7234e441bb
commit 412d05242f
No known key found for this signature in database
GPG key ID: 623B327128A9BEC3

View file

@ -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