0
@@ -256,6 +256,53 @@ Requesting /forums/3/posts/3/comments/1 using DELETE
0
- should call destroy on the found comment
0
- should redirect to the comments list
0
+CommentsController without stubs responding to GET index
0
+- should expose all comments as @comments
0
+CommentsController without stubs responding to GET index with mime type of xml
0
+- should render all comments as xml
0
+CommentsController without stubs responding to GET show
0
+- should expose the requested comment as @comment
0
+CommentsController without stubs responding to GET show with mime type of xml
0
+- should render the requested comment as xml
0
+CommentsController without stubs responding to GET new
0
+- should expose a new comment as @comment
0
+CommentsController without stubs responding to GET edit
0
+- should expose the requested comment as @comment
0
+CommentsController without stubs responding to POST create with valid params
0
+- should create a comment
0
+- should expose the newly created comment as @comment
0
+- should be resource_saved?
0
+- should redirect to the created comment
0
+CommentsController without stubs responding to POST create with invalid params
0
+- should not create a comment
0
+- should expose a newly created but unsaved comment as @comment
0
+- should not be resource_saved?
0
+- should re-render the 'new' template
0
+CommentsController without stubs responding to PUT udpate with valid params
0
+- should update the requested comment
0
+- should not contain errors on comment
0
+- should be resource_saved?
0
+- should expose the requested comment as @comment
0
+- should redirect to the comment
0
+CommentsController without stubs responding to PUT udpate with invalid params
0
+- should fail to update the requested comment
0
+- should not be resource_saved?
0
+- should expose the requested comment as @comment
0
+- should re-render the 'edit' template
0
+CommentsController without stubs responding to DELETE destroy
0
+- should delete the requested comment
0
+- should redirect to the comments list
0
Routing shortcuts for ForumPosts (forums/2/posts/1) should map
0
- resources_path to /forums/2/posts
0
- resource_path to /forums/2/posts/1
0
@@ -575,6 +622,25 @@ Requesting /forums/2/owner using DELETE
0
- should set the flash notice
0
- should redirect to forums/2
0
+CommentsController#resource_saved Comment.new(<invalid attrs>)
0
+- should not be resource saved
0
+CommentsController#resource_saved Comment.new(<invalid attrs>).save
0
+- should not be resource saved
0
+CommentsController#resource_saved Comment.new(<invalid attrs>).save then update_attributes(<valid attrs>)
0
+- should be resource saved
0
+CommentsController#resource_saved Comment.find(<id>)
0
+- should be resource saved
0
+- .save should be saved
0
+CommentsController#resource_saved Comment.find(<id>) then update_attributes(<invalid attrs>)
0
+- should not be resource saved
0
+CommentsController#resource_saved Comment.find(<id>) then update_attributes(<new valid attrs>)
0
+- should be resource saved
0
Routing shortcuts for Tags should map
0
- resources_path to /tags
0
- resource_path to /tags/2
0
@@ -768,6 +834,18 @@ UsersController handling PUT /users/dave
0
UsersController handling DELETE /users/dave
0
- should be unknown action
0
+(re: saved?) Comment.new(<invalid attrs>)
0
+- should not be validation attempted
0
+(re: saved?) Comment.new(<invalid attrs>).save
0
+- should be validation attempted
0
+(re: saved?) Comment.new(<invalid attrs>).save then update_attributes(<valid attrs>)
0
+- should be validation attempted
0
ActionView with resources_controller Helper
0
- should forward #resource_name to controller
0
- should forward #resources_name to controller
0
@@ -792,12 +870,6 @@ Helper#form_for_resource (when resource is existing record)
0
Helper#remote_form_for_resource (when resource is existing record)
0
- should call remote_form_for with update form options
0
-ResourcesController.load_enclosing_resources_filter_exists? when :find_filter defined
0
-- should call :find_filter with :load_enclosing_resources
0
-ResourcesController.load_enclosing_resources_filter_exists? when :find_filter not defined
0
-- should call :filter_chain
0
#load_enclosing_resources for resources_controller_for :tags (when route_enclosing_names is [['users', false]])
0
- should call load_wildcard once
0
- should call Specification.new('user', :singleton => false, :as => nil)
0
@@ -839,6 +911,12 @@ ResourcesController.load_enclosing_resources_filter_exists? when :find_filter no
0
- should call load_enclosing_resource_from_specification with user spec, then load_wildcard once with 'taggable'
0
- should call Specification.new with ('comment', :singleton => false, :as => 'taggable')
0
+ResourcesController.load_enclosing_resources_filter_exists? when :find_filter defined
0
+- should call :find_filter with :load_enclosing_resources
0
+ResourcesController.load_enclosing_resources_filter_exists? when :find_filter not defined
0
+- should call :filter_chain
0
ResourcesController (in general)
0
- nested_in :foo, :polymorphic => true, :class => User should raise argument error (no options or block with polymorphic)
0
- resources_controller_for :forums, :in => [:user, '*', '*', :comment] should raise argument error (no multiple wildcards in a row)
0
@@ -849,6 +927,9 @@ ResourcesController#enclosing_resource_name
0
A controller's resource_service
0
- may be explicitly set with #resource_service=
0
+- #save_resource should send resource.save
0
#route_enclosing_names TagsController for named_route:
0
- :new_tag should be []
0
@@ -870,6 +951,6 @@ A controller's resource_service
0
#route_enclosing_names Admin::Superduper::ForumsController for named_route:
0
- :admin_superduper_forums should be []
0
-Finished in
5.097926 seconds
0
+Finished in
8.293483 seconds
0
-593 examples, 0 failures
0
+632 examples, 0 failures