Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy can't my Rails app find the gems that are packaged with it?
    primarykey
    data
    text
    <p>I've got a Rails app making use of Cucumber and RSpec. We are storing the gems under vendor/gems and trying to get the app building (running tests) in a CI server.</p> <p>When I try to run our tests I'm getting the following error:</p> <pre><code>Missing these required gems: cucumber &gt;= 0.3.11 rspec-rails &gt;= 1.2.6 </code></pre> <p>When I run <code>RAILS_ENV=test rake gems</code> I get the following:</p> <pre><code> - [F] activerecord-oracle-adapter - [R] activerecord &gt;= 1.15.5.7843 - [F] thoughtbot-factory_girl = 1.2.0 - [F] cucumber &gt;= 0.3.11 - [ ] term-ansicolor &gt;= 1.0.3 - [ ] treetop &gt;= 1.2.6 - [ ] diff-lcs &gt;= 1.1.2 - [I] builder &gt;= 2.1.2 - [F] webrat &gt;= 0.4.4 - [I] nokogiri &gt;= 1.2.0 - [F] rspec &gt;= 1.2.6 - [F] rspec-rails &gt;= 1.2.6 - [F] rspec &gt;= 1.2.7 - [ ] rack &gt;= 0.4.0 - [F] thoughtbot-shoulda &gt;= 2.10.2 I = Installed F = Frozen R = Framework (loaded before rails starts) </code></pre> <p>Do the blank empty [ ]'s mean the gem is missing?</p> <p>config/environments/test.rb contains the following:</p> <pre><code>config.gem "cucumber", :lib =&gt; false, :version =&gt; "&gt;=0.3.11" unless File.direct ory?(File.join(Rails.root, 'vendor/plugins/cucumber')) config.gem "webrat", :lib =&gt; false, :version =&gt; "&gt;=0.4.4" unless File.direct ory?(File.join(Rails.root, 'vendor/plugins/webrat')) config.gem "rspec", :lib =&gt; false, :version =&gt; "&gt;=1.2.6" unless File.direct ory?(File.join(Rails.root, 'vendor/plugins/rspec')) config.gem "rspec-rails", :lib =&gt; "spec/rails", :version =&gt; "&gt;=1.2.6" unless File.direct ory?(File.join(Rails.root, 'vendor/plugins/rspec-rails')) config.gem "thoughtbot-shoulda", :lib =&gt; false, :version =&gt; "&gt;=2.10.2" unless File.direct ory?(File.join(Rails.root, 'vendor/plugins/shoulda')) </code></pre> <p>So everything looks in order, but it still refuses to run.</p> <p>Am I missing something obvious?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload