Skip to content

Commit

Permalink
minor cuke adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Dec 17, 2010
1 parent 6fb82d1 commit 90955b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions features/controller_specs/isolation_from_views.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Feature: do not render views
Feature: views are stubbed by default

By default, controller specs do not render views. This allows you specify
which view template an action should try to render regardless of whether or
not the template compiles cleanly.
By default, controller specs stub views with template that renders an empty
string instead of the views in the app. This allows you specify which view
template an action should try to render regardless of whether the template
compiles cleanly.

NOTE: unlike rspec-rails-1.x, the template must exist.
NOTE: unlike rspec-rails-1.x, the real template must exist.

Scenario: expect template that is rendered by controller action (passes)
Given a file named "spec/controllers/widgets_controller_spec.rb" with:
Expand Down
2 changes: 1 addition & 1 deletion features/controller_specs/render_views.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: render views
Feature: render_views

You can tell a controller example group to render views with the render_views
declaration.
Expand Down

0 comments on commit 90955b2

Please sign in to comment.