Skip to content

Instantly share code, notes, and snippets.

@DBA
Created December 23, 2010 00:28
Show Gist options
  • Save DBA/752365 to your computer and use it in GitHub Desktop.
Save DBA/752365 to your computer and use it in GitHub Desktop.
# encoding: utf-8
DOTIW_LIB_PATH = File.join(File.dirname(__FILE__), '..', 'lib')
$:.unshift DOTIW_LIB_PATH unless $:.include? DOTIW_LIB_PATH
$:.unshift File.dirname(__FILE__)
require 'active_support'
require 'active_support/core_ext/time/zones'
require 'ruby-debug'
Time.zone = 'UTC'
I18n.load_path.clear
I18n.load_path << Dir[File.join(File.dirname(__FILE__), "translations", "*")]
I18n.locale = :en
__END__
/Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/activesupport-3.0.3/lib/active_support/i18n.rb:9:in `<top (required)>': undefined method `load_path' for I18n:Class (NoMethodError)
from /Users/dba/programming/ruby/gems/dotiw/spec/spec_helper.rb:31:in `<top (required)>'
from /Users/dba/programming/ruby/gems/dotiw/spec/lib/dotiw_spec.rb:3:in `require'
from /Users/dba/programming/ruby/gems/dotiw/spec/lib/dotiw_spec.rb:3:in `<top (required)>'
from /Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/rspec-core-2.3.1/lib/rspec/core/configuration.rb:388:in `load'
from /Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/rspec-core-2.3.1/lib/rspec/core/configuration.rb:388:in `block in load_spec_files'
from /Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/rspec-core-2.3.1/lib/rspec/core/configuration.rb:388:in `map'
from /Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/rspec-core-2.3.1/lib/rspec/core/configuration.rb:388:in `load_spec_files'
from /Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/rspec-core-2.3.1/lib/rspec/core/command_line.rb:18:in `run'
from /Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/rspec-core-2.3.1/lib/rspec/core/runner.rb:55:in `run_in_process'
from /Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/rspec-core-2.3.1/lib/rspec/core/runner.rb:46:in `run'
from /Users/dba/.rvm/gems/ruby-1.9.2-p0@dotiw/gems/rspec-core-2.3.1/lib/rspec/core/runner.rb:10:in `block in autorun'
rake aborted!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment