Hi, David, I forgot to generate rspec after the upgrade. That fixed the problem. Thanks for your help.
Thanks, Chuck On Mon, Mar 23, 2009 at 2:41 PM, David Chelimsky <[email protected]>wrote: > 2009/3/23 Charles Grindel <[email protected]>: > > Hi, > > > > I am following the directions for setting up autotest > > ( > http://wiki.github.com/dchelimsky/rspec/spec_server-autospec-nearly-pure-bdd-joy > ) > > and experienced an error when I run rake spec:server:start. > > > > $ rake spec:server:start > > (in /home/cgrindel/code/it/webapp) > > Starting up spec_server ... > > > /home/cgrindel/code/it/webapp/vendor/plugins/rspec-rails/lib/spec/rails/spec_server.rb:1: > > uninitialized constant Rails (NameError) > > from script/spec_server:21:in `require' > > from script/spec_server:21 > > > > I took a quick look at the code in script/spec_server.rb. In short, it > > appears that the script requires 'spec/rails/spec_server' before the > Rails > > environment is loaded which happens on line 26. I moved the require of > > 'spec/rails/spec_server' after the Rails environment load. This appears > to > > have fixed this issue. > > > > So, my first question, has anyone else seen this problem? If not, can > > anyone explain how the Rails constant should be available before the > Rails > > environment is loaded? > > Did you run "script/generate rspec" when you upgraded the plugin? If > not, please do so now, and let it rewrite everything in script/ and > lib/tasks/rspec.rake. > > > > > Thanks, > > Chuck > > > > _______________________________________________ > > rspec-users mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users >
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
