I’m quite new to RoR and recently worked through Michael H.'s Rail
Tutorial. Now that I had started my first own project and began with the
implementation of a first model and it’s controller. The tests I wanted
to implement just after that. However, I run into some error messages
when I want to start rspec (see below).
The Gemfile is the same as in the Tutorial example and ‘rspec spec’
works perfectly in the other subdirectoy (U:\railsprojects\sample_app)
without any problems.
Can anybody help?
Thanks and kind regards,
Markus
Error messages:
U:\railsprojects\rim2011>bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.1)
Using builder (2.1.2)
Using i18n (0.4.2)
Using activemodel (3.0.1)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.6)
Using tzinfo (0.3.23)
Using actionpack (3.0.1)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.9.1)
Using actionmailer (3.0.1)
Using arel (1.0.1)
Using activerecord (3.0.1)
Using activeresource (3.0.1)
Using annotate-models (1.0.4)
Using bundler (1.0.3)
Using diff-lcs (1.1.2)
Using factory_girl (1.3.2)
Using thor (0.14.4)
Using railties (3.0.1)
Using rails (3.0.1)
Using factory_girl_rails (1.0)
Using faker (0.3.1)
Installing nokogiri (1.4.4)
Using rspec-core (2.0.1)
Using rspec-expectations (2.0.1)
Using rspec-mocks (2.0.1)
Using rspec (2.0.1)
Using rspec-rails (2.0.1)
Using sqlite3-ruby (1.3.2)
Using webrat (0.7.1)
Using will_paginate (3.0.pre2)
Your bundle is complete! Use bundle show [gemname]
to see where a
bundled gem is installed.
U:\railsprojects\rim2011>rspec spec/
C:/Ruby192/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.4-x86-mingw32/lib/nokogiri/nokogiri.rb:1:in
require': 127: Die angegebene Prozedur wurde nicht gefunden. - Init_nokogiri (LoadError) C:/Ruby192/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.4-x86-mingw32/lib/nokogiri/1.9/nokogiri.so from C:/Ruby192/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.4-x86-mingw32/lib/nokogiri/nokogiri.rb:1:in
<top (required)>’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.4-x86-mingw32/lib/nokogiri.rb:13:in
require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/nokogiri-1.4.4-x86-mingw32/lib/nokogiri.rb:13:in
<top (required)>’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/webrat-0.7.1/lib/webrat.rb:2:in
require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/webrat-0.7.1/lib/webrat.rb:2:in
<top (required)>’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/runtime.rb:64:in
require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/runtime.rb:64:in
block (2 levels) in require’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/runtime.rb:62:in
each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/runtime.rb:62:in
block in require’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/runtime.rb:51:in
each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/runtime.rb:51:in
require’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler.rb:112:in
require' from U://railsprojects/rim2011/config/application.rb:7:in
<top
(required)>’
from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:in
require’
from U://railsprojects/rim2011/config/environment.rb:2:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:in
require’
from internal:lib/rubygems/custom_require:29:in require' from U://railsprojects/rim2011/spec/spec_helper.rb:3:in
<top
(required)>’
from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:in
require’
from U://railsprojects/rim2011/spec/models/user_spec.rb:1:in
<top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in
load’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in
block in load_spec_files' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in
map’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in
load_spec_files' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/command_line.rb:18:in
run’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:55:in
run_in_process' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:46:in
run’
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:10:in
`block in autorun’