I assume you''re asking in the context of Rails?
If so, take a look at Spork[1]. You can choose what you want to load once,
and what you want to load before every spec.
Ken
---
[1] https://github.com/timcharper/spork
2011/3/10 phani kumar <phani.rubyonrails at gmail.com>
>
>
> Hi Guys,
>
> How can run the single spec file without loading the environment.
>
> I know ruby spec commands will load the total environment.
>
> I want to run the files one by one those are not in same folder and i want
> to load test environment once for all 10 files.
>
> Can we run single file through the Rspec:Core:Runner or some other class?
>
> Can you guys please help me?
>
> -Thanks
>
>
>
>
>
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/rspec-users/attachments/20110310/8f60780a/attachment.html>