]> source.dussan.org Git - redmine.git/commitdiff
Rename a few tests.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jun 2017 10:50:06 +0000 (10:50 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jun 2017 10:50:06 +0000 (10:50 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16653 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/attachments_controller_test.rb

index 1e8f368f471145a93fc07e0a6957506f14ed51f5..b3cfda2cdc1e9c51c5eb4f80df5eb3a3469c2a62 100644 (file)
@@ -85,7 +85,7 @@ class AttachmentsControllerTest < Redmine::ControllerTest
     set_tmp_attachments_directory
   end
 
-  def test_save_diff_type
+  def test_show_should_save_diff_type_as_user_preference
     user1 = User.find(1)
     user1.pref[:diff_type] = nil
     user1.preference.save
@@ -222,7 +222,7 @@ class AttachmentsControllerTest < Redmine::ControllerTest
     assert_select 'img.filecontent', :src => attachments(:attachments_010).filename
   end
 
-  def test_show_other
+  def test_show_other_with_no_preview
     @request.session[:user_id] = 2
     get :show, :params => {
         :id => 6