lib/surrogate/rspec.rb in surrogate-0.7.0 vs lib/surrogate/rspec.rb in surrogate-0.8.0

- old
+ new

@@ -65,11 +65,13 @@ end end Endower.add_hook do |klass| klass.class_eval do - alias was should - alias was_not should_not + if respond_to?(:should) + alias was should + alias was_not should_not + end end end end require 'surrogate/rspec/substitution_matcher'