diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-06 17:06:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-06 17:06:14 +0000 |
commit | 976a31e941e61542075866563e4c0740106c5d70 (patch) | |
tree | f9e9ef35a84f4f37f5db76de1db6f7442503abb8 /test/test_helper.rb | |
parent | 4a729036bf0a92b8da4481d1313512c5b885770a (diff) | |
download | redmine-976a31e941e61542075866563e4c0740106c5d70.tar.gz redmine-976a31e941e61542075866563e4c0740106c5d70.zip |
Merged IssuesController change_status and add_note actions.
The 'Change status' specific form removed and now accessible from issue/show view with no additional request (click on 'Update' to show the form).
The 'Change issue status' permission is removed. To change the status, the user just needs to have either 'Edit' or 'Add note' permissions and some workflow transitions allowed.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1043 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 542d4ce72..7c81c3607 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -53,6 +53,10 @@ class Test::Unit::TestCase assert_redirected_to "my/page" assert_equal login, User.find(session[:user_id]).login end + + def test_uploaded_file(name, mime) + ActionController::TestUploadedFile.new(Test::Unit::TestCase.fixture_path + "/files/#{name}", mime) + end end @@ -70,4 +74,4 @@ class String def read self.to_s end -end
\ No newline at end of file +end |