Skip to content

Commit 0ab5381

Browse files
authored
test: fix Time.now date comparison in test (#413)
1 parent a1905bc commit 0ab5381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/services/forest_liana/resources_getter_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ResourcesGetterTest < ActiveSupport::TestCase
106106
conditions: [{
107107
field: 'created_at',
108108
operator: 'after',
109-
value: '2015-06-18 08:00:00',
109+
value: "#{Time.now.year - 5}-06-18 08:00:00",
110110
}, {
111111
field: 'owner:name',
112112
operator: 'equal',

0 commit comments

Comments
 (0)