views:

10

answers:

0

I have a module which is used in several controllers and is stored in app/controllers/. I want to create a spec for it in spec/controllers. The spec will be testing the module's functions, not an actual controller class.

But, all specs in spec/controllers get the ControllerExampleGroup behaviors. And once that example is mixed in a controller is expected in the spec.

I would like to avoid having to locate the spec in another directory or creating a mock controller.

But I can't figure out how to not include the example group.