Skip to content

Commit

Permalink
Use "RSpec" insted of "Rspec" as its deprecated in v2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
keithpitt authored and Bartosz Blimke committed Oct 14, 2010
1 parent 784553c commit 34b1fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/webmock/adapters/rspec.rb
@@ -1,8 +1,8 @@
require 'webmock'

# RSpec 1.x and 2.x compatibility
if defined?(Rspec)
RSPEC_NAMESPACE = RSPEC_CONFIGURER = Rspec
if defined?(RSpec)
RSPEC_NAMESPACE = RSPEC_CONFIGURER = RSpec
elsif defined?(Spec)
RSPEC_NAMESPACE = Spec
RSPEC_CONFIGURER = Spec::Runner
Expand Down Expand Up @@ -30,4 +30,4 @@
end
}

WebMock::AssertionFailure.error_class = RSPEC_NAMESPACE::Expectations::ExpectationNotMetError
WebMock::AssertionFailure.error_class = RSPEC_NAMESPACE::Expectations::ExpectationNotMetError

0 comments on commit 34b1fdf

Please sign in to comment.