Переглянути джерело

upgrade mocha 0.14 and remove deprecation warning

<pre>
Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`.
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11896 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.4.0
Toshi MARUYAMA 11 роки тому
джерело
коміт
596366b062

+ 1
- 1
Gemfile Переглянути файл

@@ -78,7 +78,7 @@ end

group :test do
gem "shoulda", "~> 3.3.2"
gem "mocha", "~> 0.13.3"
gem "mocha", ">= 0.14", :require => 'mocha/api'
if RUBY_VERSION >= '1.9.3'
gem "capybara", "~> 2.1.0"
gem "selenium-webdriver"

+ 1
- 1
lib/plugins/open_id_authentication/test/test_helper.rb Переглянути файл

@@ -8,7 +8,7 @@ gem 'actionpack'
require 'action_controller'

gem 'mocha'
require 'mocha'
require 'mocha/setup'

gem 'ruby-openid'
require 'openid'

+ 1
- 1
test/integration/account_test.rb Переглянути файл

@@ -18,7 +18,7 @@
require File.expand_path('../../test_helper', __FILE__)

begin
require 'mocha'
require 'mocha/setup'
rescue
# Won't run some tests
end

+ 1
- 1
test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb Переглянути файл

@@ -17,7 +17,7 @@

require File.expand_path('../../../../../../test_helper', __FILE__)
begin
require 'mocha'
require 'mocha/setup'

class BazaarAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s

+ 1
- 1
test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb Переглянути файл

@@ -17,7 +17,7 @@

require File.expand_path('../../../../../../test_helper', __FILE__)
begin
require 'mocha'
require 'mocha/setup'

class CvsAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s

+ 1
- 1
test/unit/lib/redmine/scm/adapters/darcs_adapter_test.rb Переглянути файл

@@ -17,7 +17,7 @@

require File.expand_path('../../../../../../test_helper', __FILE__)
begin
require 'mocha'
require 'mocha/setup'

class DarcsAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/darcs_repository').to_s

+ 1
- 1
test/unit/lib/redmine/scm/adapters/git_adapter_test.rb Переглянути файл

@@ -17,7 +17,7 @@

require File.expand_path('../../../../../../test_helper', __FILE__)
begin
require 'mocha'
require 'mocha/setup'

class GitAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s

+ 1
- 1
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb Переглянути файл

@@ -17,7 +17,7 @@

require File.expand_path('../../../../../../test_helper', __FILE__)
begin
require 'mocha'
require 'mocha/setup'

class MercurialAdapterTest < ActiveSupport::TestCase
HELPERS_DIR = Redmine::Scm::Adapters::MercurialAdapter::HELPERS_DIR

+ 1
- 1
test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb Переглянути файл

@@ -18,7 +18,7 @@
require File.expand_path('../../../../../../test_helper', __FILE__)

begin
require 'mocha'
require 'mocha/setup'

class SubversionAdapterTest < ActiveSupport::TestCase


Завантаження…
Відмінити
Зберегти