Rspec 'cannot load such file'
<p>I am doing the Testing with Rspec course of Code School and have installed ruby 2.2.1, rails 4.2.5.1 and rspec 3.4.4 to my Ubuntu system. As the first video describes I typed </p>

<pre><code>rspec --init
</code></pre>

<p>in my project folder, which created a spec folder, in which i made a new directory called lib. There i placed the both .rb files:</p>

<pre><code>touch spec/lib/zombie_spec.rb
touch spec/lib/zombie.rb
</code></pre>

<p>The spec_helper.rb is created normally in the spec folder.
If i run: </p>

<pre><code>rspec spec/lib/zombie_spec.rb
</code></pre>

<p>for the following code in zombie_spec.rb:</p>

<pre><code>require "spec_helper"
describe "Zombie" do
    it "is named Ash"
end
</code></pre>

<p>everything runs as expected and shown in the video.
But if i take the next step and add </p>

<pre><code>require "zombie"
</code></pre>

<p>to the zombie_spec.rb file after the first require, I get the error:</p>

<pre><code>cannot load such file -- zombie (LoadError)
</code></pre>

<p>zombie.rb looks exactly like this:</p>

<pre><code>class Zombie
end
</code></pre>