On Jul 25, 2011, at 10:59 AM, Pablo L. de Miranda wrote:

> Justin,
> 
> Bellow is my directory tree for spec:
> 
> |-- spec
> |   |-- controllers
> |   |   `-- site_controller_spec.rb
> |   |-- factories.rb
> |   |-- fixtures
> |   |   `-- avatar.jpg
> |   |-- helpers
> |   |   |-- profile_helper_spec.rb
> |   |   |-- site_helper_spec.rb
> |   |   `-- task_list_helper_spec.rb
> |   |-- integration
> |   |   |-- todo_list.rb
> |   |   |-- user_login.rb
> |   |   `-- user_profile.rb

These ^^ need to end in _spec.rb for the default settings to pick them up. You 
can configure that to work differently, but I'd recommend sticking w/ the 
convention.

HTH,
David

> |   |-- models
> |   |   |-- relationship_spec.rb
> |   |   |-- todo_list_item_spec.rb
> |   |   |-- todo_list_spec.rb
> |   |   `-- user_spec.rb
> |   |-- spec_helper.rb
> |   `-- support
> |       `-- integration_example_group.rb
> 
> And yes, I'm executing the rspec inside my rails root dir.
> I'm believing that the rspec will execute my integration tests without
> any modification on path, how I could add a dir on path executing?
> 
> Thanks,
> 
> Pablo
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

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

Reply via email to