環境対応 #704 » hotfix-mocha.patch
core/lib/mikutwitter/test/test_api_call_support.rb | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
require "#{File.dirname(__FILE__)}/extension" |
3 | 3 |
require 'test/unit' |
4 |
require 'mocha' |
|
4 |
require 'mocha/setup'
|
|
5 | 5 |
require 'webmock/test_unit' |
6 | 6 |
require 'pp' |
7 | 7 |
require 'utils' |
core/lib/mikutwitter/test/test_api_shortcuts.rb | ||
---|---|---|
2 | 2 |
require "#{File.dirname(__FILE__)}/extension" |
3 | 3 | |
4 | 4 |
require 'test/unit' |
5 |
require 'mocha' |
|
5 |
require 'mocha/setup'
|
|
6 | 6 |
require 'webmock/test_unit' |
7 | 7 |
require 'pp' |
8 | 8 |
require 'utils' |
core/lib/mikutwitter/test/test_cache.rb | ||
---|---|---|
2 | 2 |
require "#{File.dirname(__FILE__)}/extension" |
3 | 3 | |
4 | 4 |
require 'test/unit' |
5 |
require 'mocha' |
|
5 |
require 'mocha/setup'
|
|
6 | 6 |
require 'webmock/test_unit' |
7 | 7 |
require 'pp' |
8 | 8 |
require 'utils' |
core/lib/mikutwitter/test/test_query.rb | ||
---|---|---|
2 | 2 |
require "#{File.dirname(__FILE__)}/extension" |
3 | 3 | |
4 | 4 |
require 'test/unit' |
5 |
require 'mocha' |
|
5 |
require 'mocha/setup'
|
|
6 | 6 |
require 'webmock' |
7 | 7 | |
8 | 8 |
require 'utils' |
core/lib/mikutwitter/test/test_streaming_failed_actions.rb | ||
---|---|---|
2 | 2 |
require "#{File.dirname(__FILE__)}/extension" |
3 | 3 | |
4 | 4 |
require 'test/unit' |
5 |
require 'mocha' |
|
5 |
require 'mocha/setup'
|
|
6 | 6 |
require 'webmock' |
7 | 7 | |
8 | 8 |
require 'utils' |
core/lib/mikutwitter/test/test_utils.rb | ||
---|---|---|
2 | 2 |
require "#{File.dirname(__FILE__)}/extension" |
3 | 3 | |
4 | 4 |
require 'test/unit' |
5 |
require 'mocha' |
|
5 |
require 'mocha/setup'
|
|
6 | 6 |
require 'webmock' |
7 | 7 |
require 'mikutwitter/connect' |
8 | 8 |
require 'test_unit_extensions' |
core/plugin/bitly/test.bitly.rb | ||
---|---|---|
2 | 2 | |
3 | 3 |
require 'test/unit' |
4 | 4 |
require 'rubygems' |
5 |
require 'mocha' |
|
5 |
require 'mocha/setup'
|
|
6 | 6 |
require File.expand_path(File.dirname(__FILE__) + '/../../utils') |
7 | 7 |
miquire :addon, 'bitly' |
8 | 8 |
core/plugin/settings/test_listener.rb | ||
---|---|---|
2 | 2 | |
3 | 3 |
require 'test/unit' |
4 | 4 |
require 'rubygems' |
5 |
require 'mocha' |
|
5 |
require 'mocha/setup'
|
|
6 | 6 |
require 'pp' |
7 | 7 |
listener = File.expand_path File.join(File.dirname(__FILE__), 'listener') |
8 | 8 |
require File.expand_path(File.dirname(__FILE__) + '/../../utils') |
core/plugin/tco/test_tco.rb | ||
---|---|---|
2 | 2 | |
3 | 3 |
require 'test/unit' |
4 | 4 |
require 'rubygems' |
5 |
require 'mocha' # !> global variable `$openimg' not initialized |
|
5 |
require 'mocha/setup' # !> global variable `$openimg' not initialized
|
|
6 | 6 |
require File.expand_path(File.dirname(__FILE__) + '/../../utils') # !> redefine call_routine |
7 | 7 |
miquire :addon, 'tco' |
8 | 8 |
test/helper.rb | ||
---|---|---|
11 | 11 |
end |
12 | 12 | |
13 | 13 |
require 'test/unit' |
14 |
require 'mocha' |
|
14 |
require 'mocha/setup'
|
|
15 | 15 | |
16 | 16 |
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__),'..','core')) |
17 | 17 |
$LOAD_PATH.unshift(File.dirname(__FILE__)) |