Tôi chỉ nhân bản mã ray nguồn từ github, và cố gắng chạy bộ kiểm tra ... Tôi đã thất bại lớn:cố gắng chạy "thử nghiệm cào" trong đường ray mã nguồn
[email protected]:~/coding/rails/rails(master)>bundle exec rake test --trace
** Invoke test (first_time)
** Execute test
/Users/patrick/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -w -I"lib:test" -I"/Users/patrick/.rvm/gems/[email protected]_patch/gems/rake-0.9.2.2/lib" "/Users/patrick/.rvm/gems/[email protected]_patch/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/**/*_test.rb"
/Users/patrick/coding/rails/rails/activesupport/lib/active_support/test_case.rb:20:in `<class:TestCase>': undefined method `register_spec_type' for ActiveSupport::TestCase:Class (NoMethodError)
from /Users/patrick/coding/rails/rails/activesupport/lib/active_support/test_case.rb:11:in `<module:ActiveSupport>'
from /Users/patrick/coding/rails/rails/activesupport/lib/active_support/test_case.rb:10:in `<top (required)>'
from /Users/patrick/coding/rails/rails/activesupport/test/benchmarkable_test.rb:3:in `<top (required)>'
from /Users/patrick/.rvm/gems/[email protected]_patch/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `require'
from /Users/patrick/.rvm/gems/[email protected]_patch/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
from /Users/patrick/.rvm/gems/[email protected]_patch/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `each'
from /Users/patrick/.rvm/gems/[email protected]_patch/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /Users/patrick/.rvm/gems/[email protected]_patch/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select'
from /Users/patrick/.rvm/gems/[email protected]_patch/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [/Users/patrick/.rvm/rubies/ruby-1.9.2-p180...]
Tasks: TOP => test
(See full trace by running task with --trace)
Và có rất nhiều sản lượng lỗi tương tự hơn sau đó trông khá giống nhau nên tôi sẽ không bận tâm khi dán nó ở đây ...
Có ai biết làm thế nào tôi có thể chạy các thử nghiệm này không?
Xin đừng làm 'RVM được head', sử dụng' RVM get latest' để cập nhật lên phiên bản phát hành mới nhất chứ không phải là người đứng đầu phát triển. –
Cảm ơn @AndrewMarshall, bắt tốt. Tôi đã cập nhật câu trả lời ở trên để phản ánh đề xuất của bạn. – scottwb
'rvm get latest' đã không được chấp nhận. 'rvm nhận được ổn định' rõ ràng là sự nóng mới. –