RSpec + EdgeRails on Windows

I recently post on my blog about setting up a Rails environment with
RSpec
in Windows, and someone left a comment saying that it doesn’t work in
EdgeRails. I so I played around with it a bit and was able to confirm
that
none RSpec appears broken on EdgeRails. I’ll post the various error
messages
I received below. I’m not expecting any sort of patch or something for
this
since it is EdgeRails, but I’m hoping someone might understand the
errors
better than I do and know a workaround.

When running generators, including the main rspec generator:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_requi re': no such file to load -- active_resource (MissingSourceFile) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequi
re’
from /cygdrive/c/Documents and Settings/Christopher D.
Pratt/test/vendor
/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:4
96:in require' from /cygdrive/c/Documents and Settings/Christopher D. Pratt/test/vendor /rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:3 42:innew_constants_in’
from /cygdrive/c/Documents and Settings/Christopher D.
Pratt/test/vendor
/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:4
96:in require' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:154: inrequire_frameworks’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:154:
in each' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:154: inrequire_frameworks’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:87:i
n process' ... 8 levels... from /cygdrive/c/Documents and Settings/Christopher D. Pratt/test/vendor /rails/railties/lib/commands/generate.rb:1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:ingem_o
riginal_require’
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`requi
re’
from script/generate:3

When running autotest (hangs afterward):

loading autotest/rails_rspec
/usr/bin/ruby -S script/spec -O spec/spec.opts spec/models/user_spec.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_requi re': no such file to load -- active_resource (MissingSourceFile) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequi
re’
from /cygdrive/c/Documents and Settings/Christopher D.
Pratt/test/vendor
/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:4
96:in require' from /cygdrive/c/Documents and Settings/Christopher D. Pratt/test/vendor /rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:3 42:innew_constants_in’
from /cygdrive/c/Documents and Settings/Christopher D.
Pratt/test/vendor
/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:4
96:in require' from /cygdrive/c/Documents and Settings/Christopher D. Pratt/test/config /../vendor/rails/railties/lib/initializer.rb:154:inrequire_frameworks’
from /cygdrive/c/Documents and Settings/Christopher D.
Pratt/test/config
/…/vendor/rails/railties/lib/initializer.rb:154:in each' from /cygdrive/c/Documents and Settings/Christopher D. Pratt/test/config /../vendor/rails/railties/lib/initializer.rb:154:inrequire_frameworks’
from /cygdrive/c/Documents and Settings/Christopher D.
Pratt/test/config
/…/vendor/rails/railties/lib/initializer.rb:87:in process' ... 25 levels... from /cygdrive/c/Documents and Settings/Christopher D. Pratt/test/vendor /plugins/rspec/lib/spec/runner/option_parser.rb:155:inparse’
from /cygdrive/c/Documents and Settings/Christopher D.
Pratt/test/vendor
/plugins/rspec/lib/spec/runner/option_parser.rb:88:in
create_behaviour_runner' from /cygdrive/c/Documents and Settings/Christopher D. Pratt/test/vendor /plugins/rspec/lib/spec/runner/command_line.rb:14:inrun’
from script/spec:4

Running rake spec:

(in /cygdrive/c/Documents and Settings/Christopher D. Pratt/test)
rake aborted!
no such file to load – active_resource

That last one is a little more obvious, but I’m not sure how to go about
fixing it.

Thanks,

Chris Pratt

On 9/27/07, Christopher D. Pratt [email protected] wrote:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_requi
re’: no such file to load – active_resource (MissingSourceFile)

I’ve seen this problem before after updating edge rails. I can’t
remember how I fixed it - I think I just updated rails a second time.
But this wasn’t an rspec problem when I experienced it - I couldn’t
run the app either.

Anybody else?

On 9/27/07, Christopher D. Pratt [email protected] wrote:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_requi
re’: no such file to load – active_resource (MissingSourceFile)
from

Thanks because edge_rails requires ActiveResource, and the rake
freeze:edge:rails don’t checkout it.

Your options:

A) Use Piston to checkout Rails Edge:

piston import http://svn.rubyonrails.org/rails/trunk/ vendor/rails

(your code should be under version control)

B) Manually checkout it the missing part

svn co http://svn.rubyonrails.org/rails/trunk/activeresource
vendor/rails

HTH,


Luis L.
Multimedia systems

Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi

On 9/27/07, Luis L. [email protected] wrote:

A) Use Piston to checkout Rails Edge:

piston import http://svn.rubyonrails.org/rails/trunk/ vendor/rails

(your code should be under version control)

B) Manually checkout it the missing part

svn co http://svn.rubyonrails.org/rails/trunk/activeresource vendor/rails

Thanks Luis!

I second that ;). Thanks Luis. Never ceases to amaze me how quickly
people
on this list respond. Thanks to all of you for all the support.

As for my problem, I’ll give what you said a try. It makes sense, so I
doubt
I’ll have any further problems.

Thanks again,

Chris Pratt

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs