kenn / standby

Read from standby databases for ActiveRecord
MIT License
87 stars 28 forks source link

Update Readme include how to run tests #30

Closed Sjeanpierre closed 4 years ago

Sjeanpierre commented 4 years ago

It was not obvious at first glance that RAILS_ENV needed to be set to test in order to get test to work.

kenn commented 4 years ago

What do you mean?

https://github.com/kenn/standby/blob/master/spec/spec_helper.rb#L4

There's a line in spec_helper.rb:

ENV['RACK_ENV'] = 'test'

and tests should just run with rake without any options. Am I missing anything?