You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works fine when testing it manually in the browser, but it seems to break my RSpec controller tests:
require'spec_helper'describe"positions/new"dobefore(:each)doassign(:position,stub_model(Position,:project_id=>1,:task_id=>1,:name=>"MyString").as_new_record)endit"renders new position form"dorender# Run the generator again with the --webrat flag if you want to use webrat matchersassert_select"form",:action=>positions_path,:method=>"post"doassert_select"input#position_project_id",:name=>"position[project_id]"assert_select"input#position_name",:name=>"position[name]"endendend
This results in
2) positions/new renders new position form
Failure/Error: render
ActionView::Template::Error:
undefined local variable or method `autocomplete_position_name_positions_path' for #<#<Class:0x007fa6ce48e1e0>:0x007fa6cfab6710>
Any idea how to solve this? Thank you.
The text was updated successfully, but these errors were encountered:
Everything works fine when testing it manually in the browser, but it seems to break my RSpec controller tests:
This results in
Any idea how to solve this? Thank you.
The text was updated successfully, but these errors were encountered: