lib/spec/matchers/extensions/instance_exec.rb in rspec-1.2.4 vs lib/spec/matchers/extensions/instance_exec.rb in rspec-1.2.5

- old
+ new

@@ -1,7 +1,5 @@ -require 'spec/ruby' - -if ::Spec::Ruby.version < "1.8.7" +unless respond_to?(:instance_exec) # based on Bounded Spec InstanceExec (Mauricio Fernandez) # http://eigenclass.org/hiki/bounded+space+instance_exec class Object module InstanceExecHelper; end include InstanceExecHelper