Skip to content

Commit

Permalink
add wip scenario for global render_views
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Dec 17, 2010
1 parent 3243461 commit 44c81aa
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions features/controller_specs/render_views.feature
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -101,3 +101,33 @@ Feature: render_views
""" """
When I run "rspec spec" When I run "rspec spec"
Then the output should contain "4 examples, 0 failures" 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"

0 comments on commit 44c81aa

Please sign in to comment.