diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-09-02 10:08:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-09-02 10:08:51 +0000 |
commit | 265baa1b2c5d0bcf37e12f1df0b3339c793b46e7 (patch) | |
tree | b5c129089cfd61e71206da7e4c94eaebef026c79 /test/functional | |
parent | 139ddd639f4196cd0b024400febb414a24cdb2fc (diff) | |
download | redmine-265baa1b2c5d0bcf37e12f1df0b3339c793b46e7.tar.gz redmine-265baa1b2c5d0bcf37e12f1df0b3339c793b46e7.zip |
Upgrade to Rails 3.2.8 (#11758).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10275 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/activities_controller_test.rb | 6 | ||||
-rw-r--r-- | test/functional/auth_sources_controller_test.rb | 4 | ||||
-rw-r--r-- | test/functional/issue_statuses_controller_test.rb | 4 | ||||
-rw-r--r-- | test/functional/issues_controller_test.rb | 24 | ||||
-rw-r--r-- | test/functional/my_controller_test.rb | 2 | ||||
-rw-r--r-- | test/functional/news_controller_test.rb | 4 | ||||
-rw-r--r-- | test/functional/projects_controller_test.rb | 2 | ||||
-rw-r--r-- | test/functional/trackers_controller_test.rb | 4 | ||||
-rw-r--r-- | test/functional/wikis_controller_test.rb | 2 |
9 files changed, 26 insertions, 26 deletions
diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb index eb2770982..13f44a108 100644 --- a/test/functional/activities_controller_test.rb +++ b/test/functional/activities_controller_test.rb @@ -48,7 +48,7 @@ class ActivitiesControllerTest < ActionController::TestCase :child => { :tag => "dt", :attributes => { :class => /issue/ }, :child => { :tag => "a", - :content => /#{Issue.find(1).subject}/, + :content => /Can't print recipes/, } } } @@ -69,7 +69,7 @@ class ActivitiesControllerTest < ActionController::TestCase :child => { :tag => "dt", :attributes => { :class => /issue/ }, :child => { :tag => "a", - :content => /#{Issue.find(5).subject}/, + :content => /Subproject issue/, } } } @@ -93,7 +93,7 @@ class ActivitiesControllerTest < ActionController::TestCase :child => { :tag => "dt", :attributes => { :class => /issue/ }, :child => { :tag => "a", - :content => /#{Issue.find(1).subject}/, + :content => /Can't print recipes/, } } } diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb index 4abf4f428..ff3c5047c 100644 --- a/test/functional/auth_sources_controller_test.rb +++ b/test/functional/auth_sources_controller_test.rb @@ -65,7 +65,7 @@ class AuthSourcesControllerTest < ActionController::TestCase assert_response :success assert_template 'new' end - assert_error_tag :content => /host can't be blank/i + assert_error_tag :content => /host can't be blank/i end def test_edit @@ -90,7 +90,7 @@ class AuthSourcesControllerTest < ActionController::TestCase put :update, :id => 1, :auth_source => {:name => 'Renamed', :host => '', :port => '389', :attr_login => 'uid'} assert_response :success assert_template 'edit' - assert_error_tag :content => /host can't be blank/i + assert_error_tag :content => /host can't be blank/i end def test_destroy diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb index c32999f80..761f1992e 100644 --- a/test/functional/issue_statuses_controller_test.rb +++ b/test/functional/issue_statuses_controller_test.rb @@ -53,7 +53,7 @@ class IssueStatusesControllerTest < ActionController::TestCase post :create, :issue_status => {:name => ''} assert_response :success assert_template 'new' - assert_error_tag :content => /name can't be blank/i + assert_error_tag :content => /name can't be blank/i end def test_edit @@ -73,7 +73,7 @@ class IssueStatusesControllerTest < ActionController::TestCase put :update, :id => '3', :issue_status => {:name => ''} assert_response :success assert_template 'edit' - assert_error_tag :content => /name can't be blank/i + assert_error_tag :content => /name can't be blank/i end def test_destroy diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index e1cbab072..f17402ec4 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -61,7 +61,7 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'index' assert_not_nil assigns(:issues) assert_nil assigns(:project) - assert_tag :tag => 'a', :content => /Can't print recipes/ + assert_tag :tag => 'a', :content => /Can't print recipes/ assert_tag :tag => 'a', :content => /Subproject issue/ # private projects hidden assert_no_tag :tag => 'a', :content => /Issue of a private subproject/ @@ -78,7 +78,7 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'index' assert_not_nil assigns(:issues) assert_nil assigns(:project) - assert_no_tag :tag => 'a', :content => /Can't print recipes/ + assert_no_tag :tag => 'a', :content => /Can't print recipes/ assert_tag :tag => 'a', :content => /Subproject issue/ end @@ -95,7 +95,7 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'index' assert_not_nil assigns(:issues) - assert_tag :tag => 'a', :content => /Can't print recipes/ + assert_tag :tag => 'a', :content => /Can't print recipes/ assert_no_tag :tag => 'a', :content => /Subproject issue/ end @@ -105,7 +105,7 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'index' assert_not_nil assigns(:issues) - assert_tag :tag => 'a', :content => /Can't print recipes/ + assert_tag :tag => 'a', :content => /Can't print recipes/ assert_tag :tag => 'a', :content => /Subproject issue/ assert_no_tag :tag => 'a', :content => /Issue of a private subproject/ end @@ -117,7 +117,7 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'index' assert_not_nil assigns(:issues) - assert_tag :tag => 'a', :content => /Can't print recipes/ + assert_tag :tag => 'a', :content => /Can't print recipes/ assert_tag :tag => 'a', :content => /Subproject issue/ assert_tag :tag => 'a', :content => /Issue of a private subproject/ end @@ -823,7 +823,7 @@ class IssuesControllerTest < ActionController::TestCase :child => { :tag => 'legend', :content => /Notes/ } } assert_tag :tag => 'title', - :content => "Bug #1: Can't print recipes - eCookbook - Redmine" + :content => "Bug #1: Can't print recipes - eCookbook - Redmine" end def test_show_by_manager @@ -1807,7 +1807,7 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'new' issue = assigns(:issue) assert_not_nil issue - assert_error_tag :content => /Database can't be blank/ + assert_error_tag :content => /Database can't be blank/ end def test_create_should_validate_required_fields @@ -1831,8 +1831,8 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'new' end - assert_error_tag :content => /Due date can't be blank/i - assert_error_tag :content => /Bar can't be blank/i + assert_error_tag :content => /Due date can't be blank/i + assert_error_tag :content => /Bar can't be blank/i end def test_create_should_ignore_readonly_fields @@ -2869,7 +2869,7 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'edit' - assert_error_tag :descendant => {:content => /Activity can't be blank/} + assert_error_tag :descendant => {:content => /Activity can't be blank/} assert_tag :textarea, :attributes => { :name => 'notes' }, :content => "\n"+notes assert_tag :input, :attributes => { :name => 'time_entry[hours]', :value => "2z" } end @@ -2887,8 +2887,8 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'edit' - assert_error_tag :descendant => {:content => /Activity can't be blank/} - assert_error_tag :descendant => {:content => /Hours can't be blank/} + assert_error_tag :descendant => {:content => /Activity can't be blank/} + assert_error_tag :descendant => {:content => /Hours can't be blank/} assert_tag :textarea, :attributes => { :name => 'notes' }, :content => "\n"+notes assert_tag :input, :attributes => { :name => 'time_entry[comments]', :value => "this is my comment" } end diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index fab6c553e..e5ed9ed2b 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -149,7 +149,7 @@ class MyControllerTest < ActionController::TestCase :new_password_confirmation => 'hello2' assert_response :success assert_template 'password' - assert_error_tag :content => /Password doesn't match confirmation/ + assert_error_tag :content => /Password doesn't match confirmation/ # wrong password post :password, :password => 'wrongpassword', diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index dcc6410ed..4bc1a2a37 100644 --- a/test/functional/news_controller_test.rb +++ b/test/functional/news_controller_test.rb @@ -123,7 +123,7 @@ class NewsControllerTest < ActionController::TestCase assert_template 'new' assert_not_nil assigns(:news) assert assigns(:news).new_record? - assert_error_tag :content => /title can't be blank/i + assert_error_tag :content => /title can't be blank/i end def test_get_edit @@ -160,7 +160,7 @@ class NewsControllerTest < ActionController::TestCase put :update, :id => 1, :news => { :description => '' } assert_response :success assert_template 'edit' - assert_error_tag :content => /description can't be blank/i + assert_error_tag :content => /description can't be blank/i end def test_destroy diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index a73bd079a..8d5be729f 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -409,7 +409,7 @@ class ProjectsControllerTest < ActionController::TestCase post :update, :id => 1, :project => {:name => ''} assert_response :success assert_template 'settings' - assert_error_tag :content => /name can't be blank/i + assert_error_tag :content => /name can't be blank/i end def test_update_should_be_denied_for_member_on_closed_project diff --git a/test/functional/trackers_controller_test.rb b/test/functional/trackers_controller_test.rb index 4c4dd0d3a..caa1ec9eb 100644 --- a/test/functional/trackers_controller_test.rb +++ b/test/functional/trackers_controller_test.rb @@ -95,7 +95,7 @@ class TrackersControllerTest < ActionController::TestCase end assert_response :success assert_template 'new' - assert_error_tag :content => /name can't be blank/i + assert_error_tag :content => /name can't be blank/i end def test_edit @@ -160,7 +160,7 @@ class TrackersControllerTest < ActionController::TestCase put :update, :id => 1, :tracker => { :name => '' } assert_response :success assert_template 'edit' - assert_error_tag :content => /name can't be blank/i + assert_error_tag :content => /name can't be blank/i end def test_move_lower diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb index fefaea1dc..d795ef1c0 100644 --- a/test/functional/wikis_controller_test.rb +++ b/test/functional/wikis_controller_test.rb @@ -58,7 +58,7 @@ class WikisControllerTest < ActionController::TestCase end assert_include 'errorExplanation', response.body - assert_include 'Start page can\\\'t be blank', response.body + assert_include 'Start page can't be blank', response.body end def test_update |