退回以前版本 发现就是 spec_helper.rb 多了这一行。 ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
#1 楼 @reyesyang 123 做完后,运行 rspec 进行测试。在 require 'rspec'这句出错。
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec (LoadError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from C:/Sites/sample_app/spec/support/ultilities_spec.rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from C:/Sites/sample_app/spec/spec_helper.rb:9:in `block in <top (required)>'
from C:/Sites/sample_app/spec/spec_helper.rb:9:in `each'
from C:/Sites/sample_app/spec/spec_helper.rb:9:in `<top (required)>'
from C:/Sites/sample_app/spec/requests/user_pages_spec.rb:1:in `require'
from C:/Sites/sample_app/spec/requests/user_pages_spec.rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `block in load_spec_files'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun'
#3 楼 @blacktulip thx, 用 bundle exec 能看懂了,还是 spork 那里出了问题。google 了一下没什么结果。 method_missing': undefined method `check_pending!' for # (NoMethodError) https://gist.github.com/wgf4242/6351019#file-trace
还是不行。因为不显色的问题,这回的提示看不懂。 https://gist.github.com/wgf4242/6351019
霸气招聘啊。。我是来膜拜的。。。
。。。我估计。应该不是很顺手吧。
正在看 Metaprogramming Ruby。。。确实写得不错。
进来跟着学习一下企业级。。。。
都升到 5 了?我还在使用 4 中。。。
mark 一下,以后试试。
。。。有了这个不能问问题了。现在。
跟地理环境有关系吧。。。。
弄一个试试去。。。
有道笔记