Cannot use 'RSpec Test' on my Rails Application

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

Cannot use 'RSpec Test' on my Rails Application

by regularJohn-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,



I'm a new RoR user and I'm trying to use NetBeans 6.5 beta with RSpec.



Running the 'RSpec test' task from the menu appearing right clicking the RailsApplication root node I got the following error:



C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require': no such file to load -- autotest (MissingSourceFile)

        from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'

        from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'

        from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'

        from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'

        from D:/svil/NetBeans/PriceCompBkOf/vendor/plugins/rspec/lib/autotest/rspec.rb:1

        from D:/svil/NetBeans/PriceCompBkOf/vendor/plugins/rspec/lib/autotest/rspec.rb:27:in `require'

        from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'

        from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'



I'm using boundled jruby, Rails 2.1, RSpec 1.1.4 on Windows XP Home SP3



Thaks to any of you who can help me






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Cannot use 'RSpec Test' on my Rails Application

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Can you run the 'spec' rake task? Please try both using the Rake runner
(ctrl-shift-r) and from the command line in the project directory, e.g.
in D:/svil/NetBeans/PriceCompBkOf:

C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/bin/jruby -S rake spec


The way the RSpec Test action works is that it invokes the rake spec
task if it is available, otherwise it will try to use the spec
executable. In your case you seem to have RSpec installed as a Rails
plugin and since the action first looks into the vendor directory, the
spec executable from vendor/plugins/rspec gets picked. Seems that it
ends up requiring autotest for some reason.

I'm not sure whether this behavior is optimal though, I'll need to look
at this still.

Erno



Massimo wrote:

> Hi,
>
>
>
> I'm a new RoR user and I'm trying to use NetBeans 6.5 beta with RSpec.
>
>
>
> Running the 'RSpec test' task from the menu appearing right clicking the RailsApplication root node I got the following error:
>
>
>
> C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require': no such file to load -- autotest (MissingSourceFile) from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
>
> from D:/svil/NetBeans/PriceCompBkOf/vendor/plugins/rspec/lib/autotest/rspec.rb:1
>
> from D:/svil/NetBeans/PriceCompBkOf/vendor/plugins/rspec/lib/autotest/rspec.rb:27:in `require'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
>
>
>
> I'm using boundled jruby, Rails 2.1, RSpec 1.1.4 on Windows XP Home SP3
>
>
>
> Thaks to any of you who can help me
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Cannot use 'RSpec Test' on my Rails Application

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does this info help?

http://21croissants.blogspot.com/2008/07/hack-to-make-autotest-work-in-netbeans.html

Massimo wrote:

> Hi,
>
>
>
> I'm a new RoR user and I'm trying to use NetBeans 6.5 beta with RSpec.
>
>
>
> Running the 'RSpec test' task from the menu appearing right clicking the RailsApplication root node I got the following error:
>
>
>
> C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require': no such file to load -- autotest (MissingSourceFile)
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
>
> from D:/svil/NetBeans/PriceCompBkOf/vendor/plugins/rspec/lib/autotest/rspec.rb:1
>
> from D:/svil/NetBeans/PriceCompBkOf/vendor/plugins/rspec/lib/autotest/rspec.rb:27:in `require'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
>
> from C:/Programmi/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
>
>
>
> I'm using boundled jruby, Rails 2.1, RSpec 1.1.4 on Windows XP Home SP3
>
>
>
> Thaks to any of you who can help me
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price!