diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-19 16:43:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-19 16:43:33 +0000 |
commit | 035805fbd04286bff0965b588b7c7dbef6652c63 (patch) | |
tree | 61fcc55e4d595f2d255ca8e71e31d57b4d5b1d9d /test/functional/versions_controller_test.rb | |
parent | 51d5a5202942dbbe8e39c51b9d4d53210da490c1 (diff) | |
download | redmine-035805fbd04286bff0965b588b7c7dbef6652c63.tar.gz redmine-035805fbd04286bff0965b588b7c7dbef6652c63.zip |
Start removing the RJS stuff.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10043 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/versions_controller_test.rb')
-rw-r--r-- | test/functional/versions_controller_test.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb index 0aa490a66..66e4864c1 100644 --- a/test/functional/versions_controller_test.rb +++ b/test/functional/versions_controller_test.rb @@ -100,10 +100,8 @@ class VersionsControllerTest < ActionController::TestCase @request.session[:user_id] = 2 xhr :get, :new, :project_id => '1' assert_response :success - assert_select_rjs :replace_html, "ajax-modal" do - assert_select "form[action=/projects/ecookbook/versions]" - assert_select "input#version_name" - end + assert_template 'new' + assert_equal 'text/javascript', response.content_type end def test_create @@ -127,9 +125,8 @@ class VersionsControllerTest < ActionController::TestCase assert_equal 1, version.project_id assert_response :success - assert_select_rjs :replace, 'issue_fixed_version_id' do - assert_select "option[value=#{version.id}][selected=selected]" - end + assert_template 'create' + assert_equal 'text/javascript', response.content_type end def test_create_from_issue_form_with_failure @@ -138,9 +135,8 @@ class VersionsControllerTest < ActionController::TestCase xhr :post, :create, :project_id => '1', :version => {:name => ''} end assert_response :success - assert_select_rjs :replace_html, "ajax-modal" do - assert_select "div#errorExplanation" - end + assert_template 'new' + assert_equal 'text/javascript', response.content_type end def test_get_edit |