Rspec single file

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

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 [email protected]