title: Bundler can't find rspec executable
body: <p>When I try to run my tests in my Rails 5.1 app, I'm getting an error that the executable can't be found:</p>
  
  <pre><code>$ bundle exec rspec
  bundler: failed to load command: rspec (/Users/joepalmieri/.rbenv/versions/2.3.3/bin/rspec)
  Gem::Exception: can't find executable rspec
    /Users/joepalmieri/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/rubygems_integration.rb:408:in `block in replace_bin_path'
    /Users/joepalmieri/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/rubygems_integration.rb:434:in `block in replace_bin_path'
    /Users/joepalmieri/.rbenv/versions/2.3.3/bin/rspec:22:in `&lt;top (required)&gt;'
  </code></pre>
  
  <p>However, when I look in <code>/Users/joepalmieri/.rbenv/versions/2.3.3/bin</code>, the executable is there:</p>
  
  <pre><code>$ ls /Users/joepalmieri/.rbenv/versions/2.3.3/bin | grep rspec
  // =&gt; rspec
  </code></pre>
  
  <p>Here are the relevant parts of my Gemfile:</p>
  
  <pre><code>gem 'rails', '~&gt; 5.1.4'
  
  group :development, :test do
    gem 'rspec-rails', '3.7.2'
  end
  </code></pre>
  
  <p>Running <code>rbenv rehash</code> didn't help.</p>
  
  <p>Any clue as to the dumb thing have I done to create this madness?</p>