Creating an "integration controller" spec


#1

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


#2

On Fri, May 15, 2009 at 2:15 PM, Forrest C. removed_email_address@domain.invalid
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)


#3

On Fri, May 15, 2009 at 1:15 PM, Forrest C. removed_email_address@domain.invalid
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