Skip to content

Commit

Permalink
provide fixture_date_format for rails 6 and rails 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Dec 13, 2023
1 parent 44d68a6 commit c71f8bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/global_test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,10 @@ def assert_dashboard_query_blocks(blocks = [])
def columns_in_projects_list
css_select('table.projects thead th').map(&:text)
end

# should be dropped after dropping Rails 6.x support / Redmine 5.1 support
def self.fixture_date_format(date)
date.try(:to_fs, :db) || date.to_s(:db)
end
end
end

0 comments on commit c71f8bf

Please sign in to comment.