我正在关注M.Hartl的书
http://www.railstutorial.org/book/static_pages#sec-spork
并尝试设置rspec测试环境
我做
bundle exec spork
并希望看到
Using RSpec
Loading Spork.prefork block...
Spork is ready and listening on 8989!
但我得到了
Using RSpec, Rails
Preloading Rails environment
Loading Spork.prefork block...
undefined local variable or method `it' for #<ActionDispatch::Routing::Mapper:0x00000003985500> (NameError)
/home/boitano/RubyProjects/sample_app/config/routes.rb:44:in `block in <top (required)>'
/home/boitano/.rvm/gems/ruby-2.0.0-p451@railstutorial_rails_4_0/gems/actionpack-4.0.5/lib/action_dispatch/routing/route_set.rb:335:in `instance_exec'
...
可能是什么问题?