You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that #26 and #36 made this easy enough to test. There are some other issues related to testing that will make this glorious, e.g. #29, #39, #40, #45 and possibly more to come.
For example, currently you need to set
AMQP_USERNAME
,AMQP_PASSWORD
,RABBITMQ_N_HOST
for tests since theRUBY_ENV
isn't "development".This could be changed easily in:
twingly-amqp/lib/twingly/amqp/connection.rb
Lines 15 to 29 in 4e96a64
Another idea is that we should look at both
RUBY_ENV
andRACK_ENV
to figure out if we're in production or not.An alternative solution might be that we expose some other API for tests (fake connection?).
The text was updated successfully, but these errors were encountered: