search for: testingcrudcontroller

Displaying 2 results from an estimated 2 matches for "testingcrudcontroller".

2007 Mar 19
3
controller_name with dynamic controllers
I''m writing a controller which should only be inherited from, something like the generic crud controller seen here: http:// geekonomics.blogspot.com/2006/07/crud-and-shared-controllers.html Now, in my spec, I would like to create a controller which inherits from the generic CRUDController, without actually creating the controller. This controller is *only* for testing. How can I
2007 Mar 19
0
action_web_services error with rspec_on_rails
...end #CommentController.class_eval { join_models :post } controller_name ''comment'' end context "join_model" do one_join_model_setup end ## spec two require File.dirname(__FILE__) + ''/../spec_helper'' def testing_crud_setup unless defined? TestingCrudController Object.const_set("TestingCrudController", Class.new (CrudResourceController)) end controller_name ''testing_crud'' end context "An Inherited Controller" do testing_crud_setup specify "should subclass from CrudResourceController" do...