Forrest Chang
2009-May-15 18:15 UTC
[rspec-users] 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
David Chelimsky
2009-May-15 19:21 UTC
[rspec-users] Creating an "integration controller" spec
On Fri, May 15, 2009 at 1:15 PM, Forrest Chang <fkchang2000 at yahoo.com> 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> > > Thanks > > > Forrest > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Fri, May 15, 2009 at 2:15 PM, Forrest Chang <fkchang2000 at yahoo.com> 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> > > Thanks > > > Forrest > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Zach Dennis http://www.continuousthinking.com (personal) http://www.mutuallyhuman.com (hire me) @zachdennis (twitter)