spec/action/prepare_data_spec.rb in vagrant-notify-0.6.0 vs spec/action/prepare_data_spec.rb in vagrant-notify-0.6.1
- old
+ new
@@ -3,10 +3,10 @@
require 'vagrant-notify/action/prepare_data'
describe Vagrant::Notify::Action::PrepareData do
let(:data_dir) { Pathname.new(Dir.mktmpdir) }
let(:app) { lambda { |env| } }
- let(:env) { {machine: mock(data_dir: data_dir)} }
+ let(:env) { {machine: double(data_dir: data_dir)} }
subject { described_class.new(app, env) }
before { subject.call(env) }
after { FileUtils.rm_rf data_dir.to_s }