comparison test/unit/repository_bazaar_test.rb @ 119:8661b858af72

* Update to Redmine trunk rev 4705
author Chris Cannam
date Thu, 13 Jan 2011 14:12:06 +0000
parents 513646585e45
children 051f544170fe
comparison
equal deleted inserted replaced
39:150ceac17a8d 119:8661b858af72
13 # 13 #
14 # You should have received a copy of the GNU General Public License 14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software 15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 require File.dirname(__FILE__) + '/../test_helper' 18 require File.expand_path('../../test_helper', __FILE__)
19 19
20 class RepositoryBazaarTest < ActiveSupport::TestCase 20 class RepositoryBazaarTest < ActiveSupport::TestCase
21 fixtures :projects 21 fixtures :projects
22 22
23 # No '..' in the repository path 23 # No '..' in the repository path
75 end 75 end
76 76
77 def test_annotate 77 def test_annotate
78 annotate = @repository.scm.annotate('doc-mkdir.txt') 78 annotate = @repository.scm.annotate('doc-mkdir.txt')
79 assert_equal 17, annotate.lines.size 79 assert_equal 17, annotate.lines.size
80 assert_equal 1, annotate.revisions[0].identifier 80 assert_equal '1', annotate.revisions[0].identifier
81 assert_equal 'jsmith@', annotate.revisions[0].author 81 assert_equal 'jsmith@', annotate.revisions[0].author
82 assert_equal 'mkdir', annotate.lines[0] 82 assert_equal 'mkdir', annotate.lines[0]
83 end 83 end
84 else 84 else
85 puts "Bazaar test repository NOT FOUND. Skipping unit tests !!!" 85 puts "Bazaar test repository NOT FOUND. Skipping unit tests !!!"