fix test_user_index of activities controller test fails at Japanese morning and afternoon
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9814 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
21dac7287b
commit
fdd36ce713
@ -73,6 +73,7 @@ class ActivitiesControllerTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_user_index
|
def test_user_index
|
||||||
|
@request.session[:user_id] = 1
|
||||||
get :index, :user_id => 2
|
get :index, :user_id => 2
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'index'
|
assert_template 'index'
|
||||||
@ -80,8 +81,11 @@ class ActivitiesControllerTest < ActionController::TestCase
|
|||||||
|
|
||||||
assert_select 'h2 a[href=/users/2]', :text => 'John Smith'
|
assert_select 'h2 a[href=/users/2]', :text => 'John Smith'
|
||||||
|
|
||||||
|
i1 = Issue.find(1)
|
||||||
|
d1 = User.find(1).time_to_date(i1.created_on)
|
||||||
|
|
||||||
assert_tag :tag => "h3",
|
assert_tag :tag => "h3",
|
||||||
:content => /#{3.day.ago.to_date.day}/,
|
:content => /#{d1.day}/,
|
||||||
:sibling => { :tag => "dl",
|
:sibling => { :tag => "dl",
|
||||||
:child => { :tag => "dt",
|
:child => { :tag => "dt",
|
||||||
:attributes => { :class => /issue/ },
|
:attributes => { :class => /issue/ },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user