spec/confstruct/utils_spec.rb in confstruct-1.0.1 vs spec/confstruct/utils_spec.rb in confstruct-1.0.2

- old
+ new

@@ -1,9 +1,9 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Kernel.eval_or_yield" do - before :all do - @obj = RSpec::Mocks::Mock.new('obj') + before :each do + @obj = double('obj') end it "should instance_eval when the block takes no params" do @obj.should_receive(:test).and_return('OK') eval_or_yield(@obj) {