search for: active_row

Displaying 1 result from an estimated 1 matches for "active_row".

Did you mean: active_rec
2009 Jan 26
4
Mocking/Stubbing ActiveRecord.config.default_timezone
...d. So, I am looking for some opinions on how to test for this sort of thing in a more general sense. At issue is the setting of config values in environment.rb files and their influence on user code. In the specific case I encountered this code demonstrates the essence of the situation: def active_row? time_now = DateTime.now return true if (effective_from <= time_now and (not superseded_after or superseded_after >= time_now )) return false end The error is that the time_now assignment is not testing whether or not the default AR time is utc....