Thanks, first, to everyone who's asked and answered questions on this list, and to the creators of RSpec - it is all very helpful.  I've searched the mailing list, and had a couple 2hr googling sessions that didn't help me find an answer.
<br><br>I&#39;ve run into a problem getting my first non-trivial view spec to run.&nbsp; I get an error when trying to generate a link_to() to another resource.&nbsp; Here is an overview of the situation, then the code:<br><br><ul>
<li>I&#39;m using a restful design</li><li>I&#39;m using nested (multiply nested) resources</li><li>I am trying to test a <span style="font-style: italic;">show<span style="font-style: italic;">.rhtml</span></span> view, that includes links (link_to) to resources managed by another controller
</li><li>The use_case model has a many-to-may <span style="font-style: italic;">through</span> relationship with actors, and I&#39;m displaying links to the associated actors on the use_case page<br></li><li>I can&#39;t get the links to generate when running rspec (but it works great in the app)
<br></li><li>I am in the early stages of the project, and want to move forward BDD, but I have some existing code that I need to test before I can start moving forward again.<br></li></ul>My theories:&nbsp; I need to stub the controller (for the other resource), or I need to stub something else. 
<br><br>Here&#39;s the command I&#39;m running to drive RSpec<br>
<br>
<span style="font-family: courier new,monospace;">ruby script/spec -f s spec/views</span><br style="font-family: courier new,monospace;"><br>Here&#39;s the error that I get<br><br><span style="font-family: courier new,monospace;">
1)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ActionView::TemplateError in &#39;UseCase showing a use case should display the use case identifier&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace; font-weight: bold;">actor_url failed to generate from {:customer_id=&gt;&quot;1&quot;, :controller=&gt;&quot;actors&quot;, :action=&gt;&quot;show&quot;, :project_id=&gt;&quot;1&quot;}, expecte
</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;">d: {:controller=&gt;&quot;actors&quot;, :action=&gt;&quot;show&quot;}, diff: {:customer_id=&gt;&quot;1&quot;, :project_id=&gt;&quot;1&quot;}
</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;">On line #22 of app/views/use_cases/show.rhtml</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 19:&nbsp;&nbsp; &lt;ul&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; 20:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% @primary_actors.each do |a| %&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 21:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace; font-weight: bold;">&nbsp;&nbsp;&nbsp; 22:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%= link_to(<a href="http://a.name">a.name</a>,actor_path(@customer,@project),{:class=&gt;&quot;show&quot;,:title=&gt;&quot;Show actor details&quot;}) -%&gt;
</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 23:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%= link_to(&quot;Remove assignment&quot;,participation_path(@customer,@project,@use_case.participations.find_by
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">_actor_id(a)),{:class=&gt;&quot;delete&quot;,:title=&gt;&quot;Remove the assignment of this actor to this use case&quot;, :confirm =&gt; &#39;Are you sur
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">e you want to remove this assignment?&#39;, :method =&gt; :delete})-%&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 24:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/li&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 25:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% end %&gt;</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:1273:in `raise_named_route_error&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:1245:in `generate&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:104:in `rewrite_path&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:69:in `rewrite&#39;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:522:in `url_for&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:27:in `url_for&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; (eval):19:in `actor_path&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/app/views/use_cases/show.rhtml:22:in `_run_rhtml_47app47views47use_cases47show46rhtml&#39;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/app/views/use_cases/show.rhtml:20:in `_run_rhtml_47app47views47use_cases47show46rhtml&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:326:in `compile_and_render_template&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file&#39;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:806:in `render_file&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:741:in `render_with_no_layout&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/layout.rb:256:in `render_without_benchmark&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render&#39;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; c:/dev/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/view.rb:55:in `render&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; spec/views/use_cases/show_view_spec.rb:40
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/composite_proc_builder.rb:17:in `proc&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/composite_proc_builder.rb:12:in `proc&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/example.rb:71:in `before_example&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/example.rb:25:in `run&#39;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; c:/dev/ruby/lib/ruby/1.8/timeout.rb:48:in `timeout&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/example.rb:24:in `run&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:81:in `run&#39;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:75:in `run&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:58:in `run_behaviours&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:57:in `run_behaviours&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:21:in `run&#39;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/runner/command_line.rb:17:in `run&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; script/spec:4</span><br><br>Here&#39;s part of my routes.rb, showing the nested resources<br><br><span style="font-family: courier new,monospace;">&nbsp; map.resources :customers do |customers|
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 
customers.resources :projects</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"> do |projects|</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
</span><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; projects.resources :actors<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; projects.resources :use_cases<br></span><br><br>Here&#39;s some of the stubbing that I am using to set up the spec<br><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; @customer = mock_model(Customer,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :id =&gt; 1,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :to_param =&gt; &quot;1&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; @project = mock_model(Project,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :id =&gt; 1, </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :customer_id =&gt; 1,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :to_param =&gt; &quot;1&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</span><br style="font-family: courier new,monospace;"><br>I&#39;ve also stubbed objects to create the following :assigns
<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; assigns[:customer] = @customer</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; assigns[:project] = @project </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; assigns[:use_case] = @use_case</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; assigns[:primary_actors] = @primary_actors</span><br><br>I suspect that there is something else that needs to be stubbed - actors controller, maybe?&nbsp; I really don&#39;t know.&nbsp; If anyone can point me in the right direction, or tell me where in the error message to dig deeper, that would be awesome.
<br><br>If I left out any important information, please let me know!&nbsp; And a huge thanks in advance to anyone who can help me out, or explain why this isn&#39;t supported, or point me towards any docs or articles that address this issue (because I will have it a zillion times, as almost all views in my app display content and links from more than one model).
<br><br>Scott<br><br>-- <br>Scott Sehlhorst, President Tyner Blain LLC<br><a href="http://tynerblain.com/blog">http://tynerblain.com/blog</a><br><a href="http://tynerblain.com/nexus">http://tynerblain.com/nexus</a>