code format cleanup TimelogCustomFieldsVisibilityTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12629 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a516a1bdb2
commit
97a4211b03
|
@ -97,10 +97,15 @@ class TimelogCustomFieldsVisibilityTest < ActionController::TestCase
|
||||||
user = User.generate!
|
user = User.generate!
|
||||||
User.add_to_project(user, p1, Role.find_all_by_id(1,3))
|
User.add_to_project(user, p1, Role.find_all_by_id(1,3))
|
||||||
User.add_to_project(user, p2, Role.find_all_by_id(3))
|
User.add_to_project(user, p2, Role.find_all_by_id(3))
|
||||||
TimeEntry.generate!(:issue => Issue.generate!(:project => p1, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueA'}))
|
TimeEntry.generate!(
|
||||||
TimeEntry.generate!(:issue => Issue.generate!(:project => p2, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueB'}))
|
:issue => Issue.generate!(:project => p1, :tracker_id => 1,
|
||||||
TimeEntry.generate!(:issue => Issue.generate!(:project => p1, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueC'}))
|
:custom_field_values => {@field2.id => 'ValueA'}))
|
||||||
|
TimeEntry.generate!(
|
||||||
|
:issue => Issue.generate!(:project => p2, :tracker_id => 1,
|
||||||
|
:custom_field_values => {@field2.id => 'ValueB'}))
|
||||||
|
TimeEntry.generate!(
|
||||||
|
:issue => Issue.generate!(:project => p1, :tracker_id => 1,
|
||||||
|
:custom_field_values => {@field2.id => 'ValueC'}))
|
||||||
@request.session[:user_id] = user.id
|
@request.session[:user_id] = user.id
|
||||||
get :index, :c => ["hours", "issue.cf_#{@field2.id}"]
|
get :index, :c => ["hours", "issue.cf_#{@field2.id}"]
|
||||||
assert_select 'td', :text => 'ValueA'
|
assert_select 'td', :text => 'ValueA'
|
||||||
|
|
Loading…
Reference in New Issue