changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/view_spec.rb

changeset 16: 01fd3f10ae84
author: moriq@moriq.com
date: Mon Mar 10 10:13:18 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec_on_rails
1require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../../spec_helper'
2
3describe "/<%= class_name.underscore %>/<%= action %>" do
4 before(:each) do
5 render '<%= class_name.underscore %>/<%= action %>'
6 end
7
8 #Delete this example and add some real ones or delete this file
9 it "should tell you where to find the file" do
10 response.should have_tag('p', /Find me in app\/views\/<%= class_name.underscore %>\/<%= action %>/)
11 end
12end