# "Missing these required gems: rspec-rails" in ruby 1.9

**URL:** <https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712>\
**Category:** Rails\
**Created:** [August 31, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712 "2009-08-31T19:33:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![oreng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e8cbc/32.png) [@oreng](https://www.ruby-forum.com/u/oreng)\
**Post date:** [August 31, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712/1 "2009-08-31T19:33:03Z")

</div>

i get the above error when running rake.  
I tried switching rails 2.3.3 with 2.3.2 but it didn’t help.

here are my gems:  
actionmailer (2.3.2)  
actionpack (2.3.2)  
activerecord (2.3.2)  
activeresource (2.3.2)  
activesupport (2.3.2)  
builder (2.1.2)  
cucumber (0.3.98)  
diff-lcs (1.1.2)  
hoe (2.3.3)  
nokogiri (1.3.3)  
polyglot (0.2.8)  
rack (1.0.0)  
rails (2.3.2)  
rake (0.8.7)  
rspec (1.2.8)  
rspec-rails (1.2.7.1)  
rubyforge (1.0.4)  
term-ansicolor (1.0.4)  
test-unit (1.2.3)  
treetop (1.3.0)  
webrat (0.5.3)

and here is the error after typing rake:

no such file to load – rspec-rails  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/  
polyglot.rb:68:in `require' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ polyglot.rb:68:in`require’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in `block in require' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:in`new\_constants\_in’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in `require' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/rails/ gem_dependency.rb:179:in`load’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/  
initializer.rb:305:in `block in load_gems' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in`each’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/  
initializer.rb:305:in `load_gems' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:162:in`process’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/  
initializer.rb:113:in `run' /home/oren/nutrition/config/environment.rb:9:in`\<top (required)\>’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in `require' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in`block in require’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:521:in `new_constants_in' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in`require’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/  
misc.rake:4:in `block in <top (required)>' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 636:in`call’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
636:in `block in execute' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 631:in`each’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
631:in `execute' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 597:in`block in invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in  
`mon_synchronize' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in`invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
607:in `block in invoke_prerequisites' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in`each’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
604:in `invoke_prerequisites' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in`block in invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in  
`mon_synchronize' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in`invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
607:in `block in invoke_prerequisites' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in`each’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
604:in `invoke_prerequisites' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in`block in invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in  
`mon_synchronize' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in`invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
607:in `block in invoke_prerequisites' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in`each’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
604:in `invoke_prerequisites' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in`block in invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in  
`mon_synchronize' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in`invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
607:in `block in invoke_prerequisites' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in`each’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
604:in `invoke_prerequisites' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in`block in invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in  
`mon_synchronize' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in`invoke\_with\_call\_chain’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
583:in `invoke' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2051:in`invoke\_task’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
2029:in `block (2 levels) in top_level' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in`each’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
2029:in `block in top_level' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2068:in`standard\_exception\_handling’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
2023:in `top_level' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2001:in`block in run’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
2068:in `standard_exception_handling' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 1998:in`run’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:  
31:in `<top (required)>' /opt/ruby/bin/rake:19:in`load’  
/opt/ruby/bin/rake:19:in `<main>' no such file to load -- rspec-rails /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ polyglot.rb:68:in`require’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/  
polyglot.rb:68:in `require' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in`block in require’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:521:in `new_constants_in' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in`require’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/rails/  
gem\_dependency.rb:179:in `load' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in`block in load\_gems’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/  
initializer.rb:305:in `each' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in`load\_gems’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/  
initializer.rb:167:in `process' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:113:in`run’  
/home/oren/nutrition/config/environment.rb:9:in `<top (required)>' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in`require’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in `block in require' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:in`new\_constants\_in’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in `require' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/ misc.rake:4:in`block in \<top (required)\>’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
636:in `call' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 636:in`block in execute’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
631:in `each' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 631:in`execute’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
597:in `block in invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in`mon\_synchronize’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
590:in `invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in`block in invoke\_prerequisites’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
604:in `each' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in`invoke\_prerequisites’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
596:in `block in invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in`mon\_synchronize’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
590:in `invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in`block in invoke\_prerequisites’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
604:in `each' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in`invoke\_prerequisites’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
596:in `block in invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in`mon\_synchronize’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
590:in `invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in`block in invoke\_prerequisites’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
604:in `each' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in`invoke\_prerequisites’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
596:in `block in invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in`mon\_synchronize’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
590:in `invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in`block in invoke\_prerequisites’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
604:in `each' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in`invoke\_prerequisites’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
596:in `block in invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in`mon\_synchronize’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
590:in `invoke_with_call_chain' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 583:in`invoke’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
2051:in `invoke_task' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in`block (2 levels) in top\_level’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
2029:in `each' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in`block in top\_level’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
2068:in `standard_exception_handling' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2023:in`top\_level’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
2001:in `block in run' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2068:in`standard\_exception\_handling’  
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:  
1998:in `run' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake: 31:in`\<top (required)\>’  
/opt/ruby/bin/rake:19:in `load' /opt/ruby/bin/rake:19:in`’  
Missing these required gems:  
rspec-rails

You’re running:  
ruby 1.9.1.243 at /opt/ruby-1.9.1-p243/bin/ruby  
rubygems 1.3.5 at /home/oren/.gem/ruby/1.9.1, /opt/ruby-1.9.1-p243/  
lib/ruby/gems/1.9.1

thanks!

---

<div class="post-metadata">

**Author:** ![oreng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e8cbc/32.png) [@oreng](https://www.ruby-forum.com/u/oreng)\
**Post date:** [August 31, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712/2 "2009-08-31T19:36:34Z")

</div>

It’s exactly what it says. Do:

gem install rspec-rails

(or if you’re on a Mac, sudo gem install rspec-rails).

---

<div class="post-metadata">

**Author:** ![oreng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e8cbc/32.png) [@oreng](https://www.ruby-forum.com/u/oreng)\
**Post date:** [September 1, 2009, 8:35am UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712/3 "2009-09-01T08:35:21Z")

</div>

i already have it installed!

actionmailer (2.3.2)  
actionpack (2.3.2)  
activerecord (2.3.2)  
activeresource (2.3.2)  
activesupport (2.3.2)  
builder (2.1.2)  
cucumber (0.3.98)  
diff-lcs (1.1.2)  
hoe (2.3.3)  
nokogiri (1.3.3)  
polyglot (0.2.8)  
rack (1.0.0)  
rails (2.3.2)  
rake (0.8.7)  
rspec (1.2.8)  
rspec-rails (1.2.7.1)  
rubyforge (1.0.4)  
term-ansicolor (1.0.4)  
test-unit (1.2.3)  
treetop (1.3.0)  
webrat (0.5.3)

---

<div class="post-metadata">

**Author:** ![oreng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e8cbc/32.png) [@oreng](https://www.ruby-forum.com/u/oreng)\
**Post date:** [September 1, 2009, 10:52am UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712/4 "2009-09-01T10:52:59Z")

</div>

change the config.gem lines for rspec/rspec-rails in your test.rb  
to:

config.gem “rspec”, :lib =\> false  
config.gem “rspec-rails”, :lib =\> false

that should solve your problem

---

<div class="post-metadata">

**Author:** ![oreng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e8cbc/32.png) [@oreng](https://www.ruby-forum.com/u/oreng)\
**Post date:** [September 1, 2009, 9:43am UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712/5 "2009-09-01T09:43:53Z")

</div>

i already have it installed!

actionmailer (2.3.2)  
actionpack (2.3.2)  
activerecord (2.3.2)  
activeresource (2.3.2)  
activesupport (2.3.2)  
builder (2.1.2)  
cucumber (0.3.98)  
diff-lcs (1.1.2)  
hoe (2.3.3)  
nokogiri (1.3.3)  
polyglot (0.2.8)  
rack (1.0.0)  
rails (2.3.2)  
rake (0.8.7)  
rspec (1.2.8)  
rspec-rails (1.2.7.1)  
rubyforge (1.0.4)  
term-ansicolor (1.0.4)  
test-unit (1.2.3)  
treetop (1.3.0)  
webrat (0.5.3)

---

<div class="post-metadata">

**Author:** ![oreng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e8cbc/32.png) [@oreng](https://www.ruby-forum.com/u/oreng)\
**Post date:** [September 1, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712/6 "2009-09-01T18:38:30Z")

</div>

thank you, it works!  
what is the reason for this error?

---

<div class="post-metadata">

**Author:** ![oreng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e8cbc/32.png) [@oreng](https://www.ruby-forum.com/u/oreng)\
**Post date:** [September 1, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712/7 "2009-09-01T19:35:53Z")

</div>

rails tries to require ‘rspec’ and ‘rspec-rails’. but the rspec  
library is ‘spec’ and the rspec-rails is ‘spec/rails’. :lib =\>  
‘spec’ / :lib =\> ‘spec/rails’ would work too,  
but since you only want to load the rspec/rails libs when you are  
actually running specs, and you usually require ‘spec/rails’ in your  
spec\_helper.rb anyway, you can use :lib =\> false so rails doesn’t  
require the rspec libs at all.

---

<div class="post-metadata">

**Author:** ![oreng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e8cbc/32.png) [@oreng](https://www.ruby-forum.com/u/oreng)\
**Post date:** [September 1, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712/8 "2009-09-01T19:47:00Z")

</div>

thank you!
