mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-15 11:52:53 +00:00
test_page_with_activity fails depending on the current time and zone (#30288).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18315 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5d7088c8ab
commit
282ddf0ee8
@ -204,6 +204,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
def test_page_with_activity
|
||||
user = User.find(2)
|
||||
user.pref.my_page_layout = {'top' => ['activity']}
|
||||
user.pref.time_zone = 'UTC'
|
||||
user.pref.save!
|
||||
|
||||
get :page
|
||||
@ -211,7 +212,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
|
||||
assert_select 'div#block-activity' do
|
||||
assert_select 'h3' do
|
||||
assert_select 'a[href=?]', activity_path(from: Date.current, user_id: user.id), :text => 'Activity'
|
||||
assert_select 'a[href=?]', activity_path(from: User.current.today, user_id: user.id), :text => 'Activity'
|
||||
end
|
||||
assert_select 'div#activity' do
|
||||
assert_select 'dt', 10
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user