Created
March 23, 2009 00:34
-
-
Save dchelimsky/83352 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 5f38b3bccf4d85c48dc965937d76ad4f2a7e67ca | |
Author: David Chelimsky <[email protected]> | |
Date: Sun Mar 15 18:05:19 2009 -0500 | |
add failing examples that should controller_name seems to have stopped working | |
diff --git a/spec/spec/rails/example/controller_example_group_spec.rb b/spec/spec/rails/example/controller_example_group_spec.rb | |
index 53bc737..364c2ea 100644 | |
--- a/spec/spec/rails/example/controller_example_group_spec.rb | |
+++ b/spec/spec/rails/example/controller_example_group_spec.rb | |
@@ -265,6 +265,25 @@ end | |
module Spec | |
module Rails | |
module Example | |
+ describe ApplicationController, :type => :controller do | |
+ describe "controller_name" do | |
+ controller_name :controller_spec | |
+ it "overrides the controller class submitted to the outermost group" do | |
+ subject.should be_an_instance_of(ControllerSpecController) | |
+ end | |
+ describe "in a nested group" do | |
+ it "overrides the controller class submitted to the outermost group" do | |
+ subject.should be_an_instance_of(ControllerSpecController) | |
+ end | |
+ describe "(doubly nested)" do | |
+ it "overrides the controller class submitted to the outermost group" do | |
+ subject.should be_an_instance_of(ControllerSpecController) | |
+ end | |
+ end | |
+ end | |
+ end | |
+ end | |
+ | |
describe ControllerExampleGroup do | |
it "should clear its name from the description" do | |
group = describe("foo", :type => :controller) do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment