mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 14:56:01 +01:00
Removes calls to #assert_template and #assigns in functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15724 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -122,7 +122,9 @@ class TimelogCustomFieldsVisibilityTest < Redmine::ControllerTest
|
||||
assert_select 'td', :text => 'ValueB', :count => 0
|
||||
assert_select 'td', {:text => 'ValueC'}, "ValueC not found in:\n#{response.body}"
|
||||
|
||||
get :index, :params => {:set_filter => '1', "issue.cf_#{@field2.id}" => '*'}
|
||||
assert_equal %w(ValueA ValueC), assigns(:entries).map{|i| i.issue.custom_field_value(@field2)}.sort
|
||||
get :index, :params => {:set_filter => '1', "issue.cf_#{@field2.id}" => '*', :c => ["issue.cf_#{@field2.id}"]}
|
||||
assert_select 'td', :text => "ValueA"
|
||||
assert_select 'td', :text => "ValueC"
|
||||
assert_select 'td', :text => "ValueB", :count => 0
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user