Skip to content

Commit

Permalink
align view spec templates
Browse files Browse the repository at this point in the history
- need to figure out how to use templates from
  other generators
  • Loading branch information
dchelimsky committed Feb 20, 2010
1 parent a827124 commit 878d74b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions 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

0 comments on commit 878d74b

Please sign in to comment.