Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add wip scenario for global render_views

  • Loading branch information...
commit 44c81aadbeb6d3e3acaa85314137f69c659541d3 1 parent 3243461
@dchelimsky dchelimsky authored
Showing with 30 additions and 0 deletions.
  1. +30 −0 features/controller_specs/render_views.feature
View
30 features/controller_specs/render_views.feature
@@ -101,3 +101,33 @@ Feature: render_views
"""
When I run "rspec spec"
Then the output should contain "4 examples, 0 failures"
+
+ @wip
+ Scenario: render_views globally
+ Given a file named "spec/support/render_views.rb" with:
+ """
+ RSpec.configure do |config|
+ config.render_views
+ end
+ """
+ And a file named "spec/controllers/widgets_controller_spec.rb" with:
+ """
+ require "spec_helper"
+
+ describe WidgetsController do
+ describe "index" do
+ it "renders the index template" do
+ get :index
+ response.should contain("Listing widgets")
+ end
+
+ it "renders the widgets/index template" do
+ get :index
+ response.should contain("Listing widgets")
+ end
+ end
+ end
+ """
+ When I run "rspec spec"
+ Then the output should contain "2 examples, 0 failures"
+
Please sign in to comment.
Something went wrong with that request. Please try again.