Tôi mới dùng Ruby on Rails và thử nghiệm. Khi tôi chạy rake test
tôi nhận được lỗi sau:Làm cách nào để thêm gem 'minitest' vào trình trợ giúp thử nghiệm của tôi?
/Users/jarvis/.rvm/gems/[email protected]/gems/rack-1.3.4/lib/rack/backports
/uri/common_192.rb:53: warning: already initialized constant WFKV_
/Users/jarvis/.rvm/gems/[email protected]/gems/turn-0.8.3/lib/turn/autorun
/minitest.rb:14:in `<top (required)>': MiniTest v1.6.0 is out of date. (RuntimeError)
`gem install minitest` and add `gem 'minitest' to you test helper.
from /Users/jarvis/.rvm/gems/[email protected]/gems/activesupport-3.1.1/lib
/active_support/dependencies.rb:240:in `require'
tôi đã làm gem install minitest
và bây giờ nó nói với thêm đá quý 'minitest' để helper thử nghiệm của tôi. Đây có phải là test/test_helper.rb
và nếu có, làm cách nào để "thêm" minitest?
có bạn đọc ? http://www.rubyinside.com/a-minitestspec-tutorial-elegant-spec-style-testing-that-comes-with-ruby-5354.html – stephenmurdoch
Cảm ơn bạn đã chia sẻ liên kết, tôi đang đọc qua nó và nó là giải thích mọi thứ tốt hơn. –
Cảm ơn bạn đã thêm giải pháp của mình! –