rake spec runs my spec:remote specs!

View: New views
2 Messages — Rating Filter:   Alert me  

rake spec runs my spec:remote specs!

by jko170-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In my spec folder, I have a "remote" directory, which contains my
specs for live data transferring with an outside api. When I run rake
spec, it runs the remote specs and I don't want it to. Keep in mind
there is NO lib/tasks/remote.task file. I ONLY want these remote specs
to run when I execute rake spec:remote

How can I achieve this?
_______________________________________________
rspec-users mailing list
rspec-users@...
http://rubyforge.org/mailman/listinfo/rspec-users

Re: rake spec runs my spec:remote specs!

by David Chelimsky-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 6, 2009 at 8:44 PM, jko170 <jko170@...> wrote:
In my spec folder, I have a "remote" directory, which contains my
specs for live data transferring with an outside api. When I run rake
spec, it runs the remote specs and I don't want it to. Keep in mind
there is NO lib/tasks/remote.task file. I ONLY want these remote specs
to run when I execute rake spec:remote

The spec task is for running all specs under the ./spec directory. As things stand now, you'd have to either rewrite that task (found in lib/tasks/rspec.rake), find a way to override it (perhaps lib/task/rspec-overrides.rake would get loaded after rspec.rake, I'm not sure), or move those specs to a different directory. 

HTH,
David
 

How can I achieve this?
_______________________________________________
rspec-users mailing list
rspec-users@...
http://rubyforge.org/mailman/listinfo/rspec-users


_______________________________________________
rspec-users mailing list
rspec-users@...
http://rubyforge.org/mailman/listinfo/rspec-users