From 878d74bccd4c8fc2aaec103f46ace87b05ff1c16 Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Sat, 20 Feb 2010 09:49:47 -0600 Subject: [PATCH] align view spec templates - need to figure out how to use templates from other generators --- lib/generators/rspec/controller/templates/view_spec.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/generators/rspec/controller/templates/view_spec.rb b/lib/generators/rspec/controller/templates/view_spec.rb index 55df895a14..6b25d12221 100644 --- a/lib/generators/rspec/controller/templates/view_spec.rb +++ b/lib/generators/rspec/controller/templates/view_spec.rb @@ -1,12 +1,9 @@ require 'spec_helper' describe "/<%= file_name %>/<%= @action %>.html.<%= options[:template_engine] %>" do - before(:each) do - render '<%= file_name %>/<%= @action %>' - end - #Delete this example and add some real ones or delete this file it "should tell you where to find the file" do - response.should have_tag('p', %r[Find me in app/views/<%= file_path %>/<%= @action %>]) + render + response.should have_selector('p', :content => "Find me in app/views/<%= file_path %>/<%= @action %>") end end