2
응용의 routes.rb이있다왜 rspec에서 _path 메소드를 찾을 수 없습니까?
resources :users, :only => :show
사용자보기가
User: #{link_to user.name, user}
뷰 스펙이
describe 'home/index.html.haml' do
it 'should render the users' do
@users = User.all
render
end
end
이 수행 옳은 일 I 로컬 응용 프로그램을 공격하지만 만약의 경우 보기에 rspec을 실행하면 얻을 수 있습니다.
Failure/Error: render
ActionView::Template::Error:
undefined method `user_path' for #<#<Class:0x109f2a468>:0x109db5128>
rspec 파일의 실제 라인은 무엇입니까? – Nick
rspec 콘텐츠로 질문을 업데이트했습니다. – Gautam