rails 4.1.0
Rails 4.1.0 으로 업데이트 후
rake db:test:clone 을 입력하니.
이러한 에러가..
---
WARNING: db:test:clone is deprecated. The Rails test helper now maintains your test schema automatically, see the release notes for details.
---
레일즈 4.1.0 부턴 자동으로 잡아주는 것 같네요!
railties
이 중에 rake tasks 중 tests 관련 이슈가 있습니다.
-> Removed deprecated rake tasks for running tests: rake test:uncommitted and rake test:recent.
IDEA?
이러한 기능의 발단은 아래 커밋에서 시작됩니다.
"자동으로 test database schema를 유지시키자!"
https://github.com/rails/rails/pull/13528
But!
하지만 rspec을 이용하는 사람들은 db:test:clone 을 입력하지 않으면 test schema를 생성하라는 에러가 나오면서 테스트가 안됩니다.
이유는 rspec-rails에서 아직 통합이 안되었기 때문입니다.
이때는 spec_helper.rb에
require 'rails/test_help'를 추가하고 진행하시면 됩니다.