lib/rspec_candy/switcher.rb in rspec_candy-0.2.1 vs lib/rspec_candy/switcher.rb in rspec_candy-0.2.2
- old
+ new
@@ -1,10 +1,10 @@
module RSpecCandy
module Switcher
extend self
def rspec_version
- if defined?(RSpec)
+ if defined?(RSpec::Core)
:rspec2
elsif defined?(Spec)
:rspec1
else
raise 'Cannot determine RSpec version'