diff options
author | Toshiaki Asai <toshi.alternative@gmail.com> | 2013-04-07 13:35:50 +0900 |
---|---|---|
committer | Toshiaki Asai <toshi.alternative@gmail.com> | 2013-04-07 13:35:50 +0900 |
commit | 85148e62788c2346371d4c381bf982be49ffa4b9 (patch) | |
tree | 04755bb72449b382f5fa3f4771ce5a1520f8693b /test/helper.rb | |
parent | c60d10515f028f07e07bfabb9f31d8e6eb7c51a7 (diff) | |
download | mikutter-85148e62788c2346371d4c381bf982be49ffa4b9.tar.gz |
vendor/bundle にインストールしたやつを読み込めるようにしてみた
Diffstat (limited to 'test/helper.rb')
-rw-r--r-- | test/helper.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/helper.rb b/test/helper.rb index e5b7eb2e..c65b18a5 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,5 +1,7 @@ +ENV['BUNDLE_GEMFILE'] = File.expand_path(File.join(File.dirname(__FILE__), "..", "Gemfile")) require 'rubygems' -require 'bundler' +require 'bundler/setup' + begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e @@ -8,13 +10,12 @@ rescue Bundler::BundlerError => e exit e.status_code end +require 'test/unit' +require 'mocha' + $LOAD_PATH.unshift(File.join(File.dirname(__FILE__),'..','core')) $LOAD_PATH.unshift(File.dirname(__FILE__)) -require 'boot/option' + require 'utils' require 'miquire' require 'test_unit_extensions' -# require File.expand_path(File.dirname(__FILE__)+'/../core/boot/option') -# require File.expand_path(File.dirname(__FILE__)+'/../core/utils') -# require File.expand_path(File.dirname(__FILE__)+'/../core/miquire') -# require File.expand_path(File.dirname(__FILE__)+'/../core/lib/test_unit_extensions') |