##// END OF EJS Templates
upgrade mocha 0.14 and remove deprecation warning...
Toshi MARUYAMA -
r11666:596366b06286
parent child
Show More
@@ -78,7 +78,7 end
78
78
79 group :test do
79 group :test do
80 gem "shoulda", "~> 3.3.2"
80 gem "shoulda", "~> 3.3.2"
81 gem "mocha", "~> 0.13.3"
81 gem "mocha", ">= 0.14", :require => 'mocha/api'
82 if RUBY_VERSION >= '1.9.3'
82 if RUBY_VERSION >= '1.9.3'
83 gem "capybara", "~> 2.1.0"
83 gem "capybara", "~> 2.1.0"
84 gem "selenium-webdriver"
84 gem "selenium-webdriver"
@@ -8,7 +8,7 gem 'actionpack'
8 require 'action_controller'
8 require 'action_controller'
9
9
10 gem 'mocha'
10 gem 'mocha'
11 require 'mocha'
11 require 'mocha/setup'
12
12
13 gem 'ruby-openid'
13 gem 'ruby-openid'
14 require 'openid'
14 require 'openid'
@@ -18,7 +18,7
18 require File.expand_path('../../test_helper', __FILE__)
18 require File.expand_path('../../test_helper', __FILE__)
19
19
20 begin
20 begin
21 require 'mocha'
21 require 'mocha/setup'
22 rescue
22 rescue
23 # Won't run some tests
23 # Won't run some tests
24 end
24 end
@@ -17,7 +17,7
17
17
18 require File.expand_path('../../../../../../test_helper', __FILE__)
18 require File.expand_path('../../../../../../test_helper', __FILE__)
19 begin
19 begin
20 require 'mocha'
20 require 'mocha/setup'
21
21
22 class BazaarAdapterTest < ActiveSupport::TestCase
22 class BazaarAdapterTest < ActiveSupport::TestCase
23 REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s
23 REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s
@@ -17,7 +17,7
17
17
18 require File.expand_path('../../../../../../test_helper', __FILE__)
18 require File.expand_path('../../../../../../test_helper', __FILE__)
19 begin
19 begin
20 require 'mocha'
20 require 'mocha/setup'
21
21
22 class CvsAdapterTest < ActiveSupport::TestCase
22 class CvsAdapterTest < ActiveSupport::TestCase
23 REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s
23 REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s
@@ -17,7 +17,7
17
17
18 require File.expand_path('../../../../../../test_helper', __FILE__)
18 require File.expand_path('../../../../../../test_helper', __FILE__)
19 begin
19 begin
20 require 'mocha'
20 require 'mocha/setup'
21
21
22 class DarcsAdapterTest < ActiveSupport::TestCase
22 class DarcsAdapterTest < ActiveSupport::TestCase
23 REPOSITORY_PATH = Rails.root.join('tmp/test/darcs_repository').to_s
23 REPOSITORY_PATH = Rails.root.join('tmp/test/darcs_repository').to_s
@@ -17,7 +17,7
17
17
18 require File.expand_path('../../../../../../test_helper', __FILE__)
18 require File.expand_path('../../../../../../test_helper', __FILE__)
19 begin
19 begin
20 require 'mocha'
20 require 'mocha/setup'
21
21
22 class GitAdapterTest < ActiveSupport::TestCase
22 class GitAdapterTest < ActiveSupport::TestCase
23 REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
23 REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
@@ -17,7 +17,7
17
17
18 require File.expand_path('../../../../../../test_helper', __FILE__)
18 require File.expand_path('../../../../../../test_helper', __FILE__)
19 begin
19 begin
20 require 'mocha'
20 require 'mocha/setup'
21
21
22 class MercurialAdapterTest < ActiveSupport::TestCase
22 class MercurialAdapterTest < ActiveSupport::TestCase
23 HELPERS_DIR = Redmine::Scm::Adapters::MercurialAdapter::HELPERS_DIR
23 HELPERS_DIR = Redmine::Scm::Adapters::MercurialAdapter::HELPERS_DIR
@@ -18,7 +18,7
18 require File.expand_path('../../../../../../test_helper', __FILE__)
18 require File.expand_path('../../../../../../test_helper', __FILE__)
19
19
20 begin
20 begin
21 require 'mocha'
21 require 'mocha/setup'
22
22
23 class SubversionAdapterTest < ActiveSupport::TestCase
23 class SubversionAdapterTest < ActiveSupport::TestCase
24
24
General Comments 0
You need to be logged in to leave comments. Login now