Skip to content

Instantly share code, notes, and snippets.

@mdkent
Created December 15, 2011 22:35
Show Gist options
  • Save mdkent/1483266 to your computer and use it in GitHub Desktop.
Save mdkent/1483266 to your computer and use it in GitHub Desktop.
/home/mkent/git/chef/chef/spec/support/matchers/leak.rb:21: uninitialized constant RSpec::Matchers (NameError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/mkent/git/chef/chef/spec/spec_helper.rb:104
from /home/mkent/git/chef/chef/spec/spec_helper.rb:104:in `each'
from /home/mkent/git/chef/chef/spec/spec_helper.rb:104
from log_spec.rb:21:in `require'
from log_spec.rb:21
--- a/chef/spec/support/matchers/leak.rb
+++ b/chef/spec/support/matchers/leak.rb
@@ -16,6 +16,8 @@
# limitations under the License.
#
+require 'rspec/matchers'
+
module Matchers
module LeakBase
include RSpec::Matchers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment