Home Rspec and environment configuration file
Reply: 0

Rspec and environment configuration file

user377
1#
user377 Published in May 21, 2018, 9:05 am

How can I force Rspec to get config from config/settings/test.yml ?

I use gem "config"

Inside Rspec folder i have rails_helper.rb file with:

ENV['RAILS_ENV'] ||= 'test'

When I start

bundle exec rspec

Rspec persistently try to retrive data from config/settings.yml

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.361041 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO