##// END OF EJS Templates
scm: bazaar: prepare version string unit lib test....
Toshi MARUYAMA -
r4687:fe37f45cb50c
parent child
Show More
@@ -0,0 +1,26
1 require File.expand_path('../../../../../../test_helper', __FILE__)
2 begin
3 require 'mocha'
4
5 class BazaarAdapterTest < ActiveSupport::TestCase
6
7 REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository'
8 MODULE_NAME = 'test'
9
10 if File.directory?(REPOSITORY_PATH)
11 def setup
12 @adapter = Redmine::Scm::Adapters::BazzarAdapter.new(MODULE_NAME, REPOSITORY_PATH)
13 end
14
15 else
16 puts "Bazaar test repository NOT FOUND. Skipping unit tests !!!"
17 def test_fake; assert true end
18 end
19 end
20
21 rescue LoadError
22 class BazaarMochaFake < ActiveSupport::TestCase
23 def test_fake; assert(false, "Requires mocha to run those tests") end
24 end
25 end
26
General Comments 0
You need to be logged in to leave comments. Login now