summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_bazaar_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/repository_bazaar_test.rb')
-rw-r--r--test/unit/repository_bazaar_test.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb
index 38f2af498..b2515fe30 100644
--- a/test/unit/repository_bazaar_test.rb
+++ b/test/unit/repository_bazaar_test.rb
@@ -19,14 +19,17 @@ require File.expand_path('../../test_helper', __FILE__)
class RepositoryBazaarTest < ActiveSupport::TestCase
fixtures :projects
-
+
# No '..' in the repository path
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository'
REPOSITORY_PATH.gsub!(/\/+/, '/')
def setup
@project = Project.find(3)
- assert @repository = Repository::Bazaar.create(:project => @project, :url => "file:///#{REPOSITORY_PATH}")
+ @repository = Repository::Bazaar.create(
+ :project => @project, :url => "file:///#{REPOSITORY_PATH}",
+ :log_encoding => 'UTF-8')
+ assert @repository
end
if File.directory?(REPOSITORY_PATH)