lib/rspec_candy/switcher.rb in rspec_candy-0.2.2 vs lib/rspec_candy/switcher.rb in rspec_candy-0.2.3

- old
+ new

@@ -27,10 +27,14 @@ def new_mock(*args) rspec_root.const_get(:Mocks).const_get(:Mock).new(*args) end def rspec_root - (defined?(RSpec) ? RSpec : Spec) + if rspec_version == :rspec1 + Spec + else + RSpec + end end def rspec_matcher_registry rspec_root.const_get(:Matchers) end