]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: code clean up functional test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 24 May 2011 01:47:26 +0000 (01:47 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 24 May 2011 01:47:26 +0000 (01:47 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5883 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_bazaar_controller_test.rb

index f7dfbfe181025439bda768ee6674f33a897d9cc8..75fddab97aa3e53413396fbba3479ded917a8d93 100644 (file)
@@ -22,7 +22,8 @@ require 'repositories_controller'
 class RepositoriesController; def rescue_action(e) raise e end; end
 
 class RepositoriesBazaarControllerTest < ActionController::TestCase
-  fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :enabled_modules
+  fixtures :projects, :users, :roles, :members, :member_roles,
+           :repositories, :enabled_modules
 
   # No '..' in the repository path
   REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository'
@@ -35,7 +36,8 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
     User.current = nil
     @project = Project.find(PRJ_ID)
     @repository = Repository::Bazaar.create(
-                    :project => @project, :url => REPOSITORY_PATH,
+                    :project      => @project,
+                    :url          => REPOSITORY_PATH,
                     :log_encoding => 'UTF-8')
     assert @repository
   end
@@ -76,7 +78,8 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
       assert_response :success
       assert_template 'show'
       assert_not_nil assigns(:entries)
-      assert_equal ['directory', 'doc-deleted.txt', 'doc-ls.txt', 'doc-mkdir.txt'], assigns(:entries).collect(&:name)
+      assert_equal ['directory', 'doc-deleted.txt', 'doc-ls.txt', 'doc-mkdir.txt'],
+                   assigns(:entries).collect(&:name)
     end
     
     def test_changes