[rspec-users] RSpec + EdgeRails on Windows

David Chelimsky dchelimsky at gmail.com
Thu Sep 27 20:59:36 EDT 2007


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
>


More information about the rspec-users mailing list