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:in `requi 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:in `new_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: in `require_frameworks'' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:154: in `each'' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:154: in `require_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:in `gem_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:in `requi 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:in `new_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:in `require_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:in `require_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:in `parse'' 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:in `run'' 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070927/98fb8842/attachment-0001.html
On 9/27/07, Christopher D. Pratt <chrisdpratt at gmail.com> wrote:> 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) > fromThanks 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 Lavena 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, Christopher D. Pratt <chrisdpratt at gmail.com> wrote:> 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)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?> from > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `requi > 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:in `new_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: > in `require_frameworks'' > from > ./script/../config/../vendor/rails/railties/lib/initializer.rb:154: > in `each'' > from > ./script/../config/../vendor/rails/railties/lib/initializer.rb:154: > in `require_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:in > `gem_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:in > `requi > 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:in `new_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:in > `require_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:in > `require_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:in > `parse'' > 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:in `run'' > 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 > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 9/27/07, Luis Lavena <luislavena at gmail.com> wrote:> On 9/27/07, Christopher D. Pratt <chrisdpratt at gmail.com> wrote: > > 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 > > 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/railsThanks Luis!> > HTH, > > -- > Luis Lavena > 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 > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
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 On 9/27/07, Luis Lavena <luislavena at gmail.com> wrote:> > On 9/27/07, Christopher D. Pratt <chrisdpratt at gmail.com> wrote: > > 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 > > 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 Lavena > 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 > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070927/5939b028/attachment.html
Seemingly Similar Threads
- "rake spec:doc" returns NO NAME (due to --dry-run) for each specify block
- Removed edge rails but cannot find installed rails
- ActiveResource, find(1) works but no find(:all)
- EdgeRails: "undefined method `weight'' for #<Hash:
- EdgeRails with other Gems like RMagick