summaryrefslogtreecommitdiffstats
path: root/test/functional/issue_statuses_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-18 21:26:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-18 21:26:30 +0000
commitec31b616982f137abdee8d0c6aa9dc4a6d103189 (patch)
treee4f5dc564be2b4ce5047a1f5acb2790fdc3b70ca /test/functional/issue_statuses_controller_test.rb
parent1db54e228d98d20536133bf52a8af0ce67616dc3 (diff)
downloadredmine-ec31b616982f137abdee8d0c6aa9dc4a6d103189.tar.gz
redmine-ec31b616982f137abdee8d0c6aa9dc4a6d103189.zip
Removes calls to #assert_template and #assigns in functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15695 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issue_statuses_controller_test.rb')
-rw-r--r--test/functional/issue_statuses_controller_test.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb
index 34074a786..047576705 100644
--- a/test/functional/issue_statuses_controller_test.rb
+++ b/test/functional/issue_statuses_controller_test.rb
@@ -28,7 +28,7 @@ class IssueStatusesControllerTest < Redmine::ControllerTest
def test_index
get :index
assert_response :success
- assert_template 'index'
+ assert_select 'table.issue_statuses'
end
def test_index_by_anonymous_should_redirect_to_login_form
@@ -46,7 +46,7 @@ class IssueStatusesControllerTest < Redmine::ControllerTest
def test_new
get :new
assert_response :success
- assert_template 'new'
+ assert_select 'input[name=?]', 'issue_status[name]'
end
def test_create
@@ -61,14 +61,13 @@ class IssueStatusesControllerTest < Redmine::ControllerTest
def test_create_with_failure
post :create, :issue_status => {:name => ''}
assert_response :success
- assert_template 'new'
assert_select_error /name cannot be blank/i
end
def test_edit
get :edit, :id => '3'
assert_response :success
- assert_template 'edit'
+ assert_select 'input[name=?][value=?]', 'issue_status[name]', 'Resolved'
end
def test_update
@@ -81,7 +80,6 @@ class IssueStatusesControllerTest < Redmine::ControllerTest
def test_update_with_failure
put :update, :id => '3', :issue_status => {:name => ''}
assert_response :success
- assert_template 'edit'
assert_select_error /name cannot be blank/i
end