Skip to content

Instantly share code, notes, and snippets.

@waterlink
Created January 22, 2015 20:05
Show Gist options
  • Select an option

  • Save waterlink/48c60f8bf129553bdece to your computer and use it in GitHub Desktop.

Select an option

Save waterlink/48c60f8bf129553bdece to your computer and use it in GitHub Desktop.
1) RSpec::Expectations behaves like a library that issues no warnings when loaded issues no warnings when the spec files are loaded
Failure/Error: expect(stderr).to eq("")
expected: ""
got: "/Users/waterlink/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.7.9/lib/bundler/source/rubygems.rb:191: warning: shadowing outer local variable - spec\n"
(compared using ==)
Diff:
@@ -1 +1,2 @@
+/Users/waterlink/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.7.9/lib/bundler/source/rubygems.rb:191: warning: shadowing outer local variable - spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment