Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created March 18, 2009 02:09
Show Gist options
  • Save dchelimsky/80891 to your computer and use it in GitHub Desktop.
Save dchelimsky/80891 to your computer and use it in GitHub Desktop.
script/spec spec
./script/../config/environments/test.rb:7: undefined local variable or method `config' for main:Object (NameError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.1/lib/active_support/dependencies.rb:156:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.1/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.1/lib/active_support/dependencies.rb:156:in `require'
from script/spec:4
RAILS_ENV = 'test'
require File.join(File.dirname(__FILE__), "/../config/environment")
require File.join(File.dirname(__FILE__), "/../config/environments/test")
require 'spec/autorun'
exit ::Spec::Runner::CommandLine.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment