1
경고 : 다음 주 또는 부 릴리스에서 제거되는 비추천 동작이 사용됩니다. (should_change에서 /usr/local/lib/ruby/gems/1.8/gems/shoulda-2.11.0/lib/shoulda/macros.rb:40이라고 부름)should_change 매크로가 shoulda 2.11.0에서 deprecation 경고를 발생시키는 이유
예 : 테스트 이런 종류의 새로운 했어야와 경고없이 작업으로 변경해야합니다
fast_context "a" do
setup do
...
end
should_change("message", :by => 1) { Messages.count }
end
이 기능을 기존 프로젝트로 복원해야하는 경우 여기에서 코드를 찾을 수 있습니다. https://github.com/cluesque/shoulda_create – whatbird