Creating an "integration controller" spec

Hi All:

So I have some longer running controller specs that interact with
outside API’s that I want to move into an integration directory. In
doing so, it seems I don’t get the (possibly determined by directory?)
magic that creates a ControllerExampleGroup, but rather a
RailsExampleGroup.

How might I set this up to recognize it as a controller spec?

Thanks

Forrest

On Fri, May 15, 2009 at 2:15 PM, Forrest C. [email protected]
wrote:

Hi All:

So I have some longer running controller specs that interact with outside API’s that I want to move into an integration directory. In doing so, it seems I don’t get the (possibly determined by directory?) magic that creates a ControllerExampleGroup, but rather a RailsExampleGroup.

How might I set this up to recognize it as a controller spec?

describe YourController, :type => :controller do

end

http://rubyforge.org/mailman/listinfo/rspec-users


Zach D.
http://www.continuousthinking.com (personal)
http://www.mutuallyhuman.com (hire me)
@zachdennis (twitter)

On Fri, May 15, 2009 at 1:15 PM, Forrest C. [email protected]
wrote:

Hi All:

So I have some longer running controller specs that interact with outside API’s that I want to move into an integration directory. In doing so, it seems I don’t get the (possibly determined by directory?) magic that creates a ControllerExampleGroup, but rather a RailsExampleGroup.

How might I set this up to recognize it as a controller spec?

describe “something”, :type => :controller do

Cheers,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs