David, thanks for the reply!

> Rails handles this for you implicitly. Are you having a problem?

Yes. I don't have Cucumber, rspec, rspec-rails nor webrat installed as
gems system-wide. I only have them as plugins in the app. When I try
to run a sample feature with script/cucumber, I get the following
output:

>$ script/cucumber vendor/plugins/cucumber/examples/selenium

>no such file to load -- spec/expectations
>Failed to load 
>vendor/plugins/cucumber/examples/selenium/features/support/env.rb (LoadError)
>/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 
>`gem_original_require'
>/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 
>`polyglot_original_require'
>/usr/lib/ruby/gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in `require'
>./vendor/plugins/cucumber/examples/selenium/features/support/env.rb:1
>/>usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 
>`gem_original_require'
>/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 
>`polyglot_original_require'
>/usr/lib/ruby/gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in `require'
>/home/marcelo/projetos/creative-allies-dev/trunk/ruby/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:99:in
> `require_files'
>/home/marcelo/projetos/creative-allies-dev/trunk/ruby/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:108:in
> `each_lib'
>/home/marcelo/projetos/creative-allies-dev/trunk/ruby/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:106:in
> `each'
>/home/marcelo/projetos/creative-allies-dev/trunk/ruby/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:106:in
> `each_lib'
>/home/marcelo/projetos/creative-allies-dev/trunk/ruby/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:99:in
> `require_files'
>/home/marcelo/projetos/creative-allies-dev/trunk/ruby/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:53:in
> `execute!'
>/home/marcelo/projetos/creative-allies-dev/trunk/ruby/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:26:in
> `execute'
>/home/marcelo/projetos/creative-allies-dev/trunk/ruby/vendor/plugins/cucumber/bin/cucumber:9
>script/cucumber:3:in `load'
>script/cucumber:3

I mean, having these libraries self-contained in the app is the whole
idea of installing them as plugins. However, script/cucumber is still
trying to find system-wide gems.

Any ideas?

Thanks,

Marcelo.

On Tue, Aug 4, 2009 at 8:13 AM, David Chelimsky<dchelim...@gmail.com> wrote:
> On Mon, Aug 3, 2009 at 4:00 PM, Marcelo de Moraes
> Serpa<celose...@gmail.com> wrote:
>> Hello list,
>>
>> When installing Webrat as a plugin, do I need to change the "require
>> 'webrat'" to point to the absolute directory in which webrat is
>> installed in the vendor/plugins folder or is there any implicit logic
>> in the require that I am missing?
>
> Rails handles this for you implicitly. Are you having a problem?
>
>> I didn't find anything in the rSpec
>> book about this (see In chapter 20, page 276, the book shows the
>> "plugin approach" of bundling the libraries).
>>
>> Thanks,
>>
>> Marcelo.
>> _______________________________________________
>> 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
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to