title: ERROR - Could not load 'guard/rspec' or' ' find class Guard::Rspec
body: <p>I'm learning RoR by The Ruby on Rails Tutorial (Michael Hartl).</p>
  
  <p>Now I try to run tests with Guard.</p>
  
  <p>My Gemfile:</p>
  
  <pre><code>source 'https://rubygems.org'
  ruby '2.0.0'
  #ruby-gemset=railstutorial_rails_4_0
  
  gem 'rails', '4.0.2'
  
  group :development, :test do
    gem 'sqlite3', '1.3.8'
    gem 'rspec-rails', '2.13.1'
    gem 'guard-rspec', '2.5.0'
  end
  
  group :test do
    gem 'selenium-webdriver', '2.35.1'
    gem 'capybara', '2.1.0'
    gem 'libnotify', '0.8.0'
  end
  
  gem 'sass-rails', '4.0.1'
  gem 'uglifier', '2.1.1'
  gem 'coffee-rails', '4.0.1'
  gem 'jquery-rails', '3.0.4'
  gem 'turbolinks', '1.1.1'
  gem 'jbuilder', '1.0.2'
  
  group :doc do
    gem 'sdoc', '0.3.20', require: false
  end
  
  group :production do
    gem 'pg', '0.15.1'
    gem 'rails_12factor', '0.0.2'
  end
  </code></pre>
  
  <p>My Guard file:</p>
  
  <pre><code>require 'active_support/inflector'
  
  guard 'rspec', all_after_pass: false do
  
    watch('config/routes.rb')
    # Custom Rails Tutorial specs
    watch(%r{^app/controllers/(.+)_(controller)\.rb$}) do |m|
      ["spec/routing/#{m[1]}_routing_spec.rb",
       "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb",
       "spec/acceptance/#{m[1]}_spec.rb",
       (m[1][/_pages/] ? "spec/requests/#{m[1]}_spec.rb" :
                         "spec/requests/#{m[1].singularize}_pages_spec.rb")]
    end
    watch(%r{^app/views/(.+)/}) do |m|
      (m[1][/_pages/] ? "spec/requests/#{m[1]}_spec.rb" :
                        "spec/requests/#{m[1].singularize}_pages_spec.rb")
    end
    watch(%r{^app/controllers/sessions_controller\.rb$}) do |m|
      "spec/requests/authentication_pages_spec.rb"
    end
  
  end
  </code></pre>
  
  <p>And when I try to run: guard (or bundle exec guard) I got error:</p>
  
  <pre><code>gvyntyk@gvyntyk-r60:~/rails_projects/sample_app$ guard
  14:31:28 - INFO - Guard here! It looks like your project has a Gemfile, yet you are running
  &gt; [#] `guard` outside of Bundler. If this is your intent, feel free to ignore this
  &gt; [#] message. Otherwise, consider using `bundle exec guard` to ensure your
  &gt; [#] dependencies are loaded correctly.
  &gt; [#] (You can run `guard` with --no-bundler-warning to get rid of this message.)
  14:31:29 - ERROR - Could not load 'guard/rspec' or'    ' find class Guard::Rspec
  14:31:29 - ERROR - Error is: cannot load such file -- guard/guard
  14:31:29 - ERROR - /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
  &gt; [#] /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-rspec-2.5.0/lib/guard/rspec.rb:2:in `&lt;top (required)&gt;'
  &gt; [#] /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
  &gt; [#] /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
  &gt; [#] /home/gvyntyk/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/plugin_util.rb:105:in `rescue in plugin_class'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/plugin_util.rb:97:in `plugin_class'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/plugin_util.rb:56:in `initialize_plugin'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/internals/plugins.rb:26:in `add'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/dsl.rb:185:in `block in guard'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/dsl.rb:182:in `each'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/dsl.rb:182:in `guard'
  &gt; [#] /home/gvyntyk/rails_projects/sample_app/Guardfile:3:in `evaluate'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/dsl.rb:377:in `instance_eval'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/dsl.rb:377:in `evaluate'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/guardfile/evaluator.rb:90:in `evaluate'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard.rb:134:in `_evaluate'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard.rb:49:in `setup'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/commander.rb:32:in `start'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/cli/environments/valid.rb:16:in `start_guard'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/cli.rb:113:in `start'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/aruba_adapter.rb:32:in `execute'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/lib/guard/aruba_adapter.rb:19:in `execute!'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/gems/guard-2.11.1/bin/guard:11:in `&lt;top (required)&gt;'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/bin/guard:23:in `load'
  &gt; [#] /home/gvyntyk/.rvm/gems/ruby-2.0.0-p598@railstutorial_rails_4_0/bin/guard:23:in `&lt;main&gt;'
  14:31:29 - ERROR - Invalid Guardfile, original error is: 
  &gt; [#] 
  &gt; [#] Could not load class: "Rspec", 
  &gt; [#] backtrace: 
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/plugin_util.rb:57:in `initialize_plugin'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/internals/plugins.rb:26:in `add'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/dsl.rb:185:in `block in guard'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/dsl.rb:182:in `each'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/dsl.rb:182:in `guard'
  &gt; [#]   (dsl)&gt; ./Guardfile:3:in `evaluate'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/dsl.rb:377:in `instance_eval'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/dsl.rb:377:in `evaluate'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/guardfile/evaluator.rb:90:in `evaluate'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard.rb:134:in `_evaluate'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard.rb:49:in `setup'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/commander.rb:32:in `start'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/cli/environments/valid.rb:16:in `start_guard'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/cli.rb:113:in `start'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/aruba_adapter.rb:32:in `execute'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/lib/guard/aruba_adapter.rb:19:in `execute!'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/gems/guard-2.11.1/bin/guard:11:in `&lt;top (required)&gt;'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/bin/guard:23:in `load'
  &gt; [#]   (dsl)&gt; $GEM_PATH[0]/bin/guard:23:in `&lt;main&gt;'
  </code></pre>
  
  <p>BTW:</p>
  
  <pre><code>gem list | grep guard
  guard (2.11.1)
  guard-compat (1.2.1)
  guard-rspec (2.5.0)
  </code></pre>
  
  <p>What's wrong?</p>