Skip to content

Commit

Permalink
Merge pull request #561 from avit/time-test-failure-rails3
Browse files Browse the repository at this point in the history
Fix time-dependent test failure
  • Loading branch information
jonatack committed Jul 11, 2015
2 parents d5d1cfa + ea746f2 commit f77437e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/ransack/adapters/active_record/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def self.sane_adapter?
end

it "should function correctly with a multi-parameter attribute" do
::ActiveRecord::Base.default_timezone = :utc
Time.zone = 'UTC'

date = Date.current
s = Person.ransack(
{ "created_at_gteq(1i)" => date.year,
Expand Down

0 comments on commit f77437e

Please sign in to comment.