Sha256: 5ebd65a024bc4ad8b46bb513e26ce486dd5536a6022f0218c2ba7a40b847327a
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
require 'spec_helper' 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: double(data_dir: data_dir)} } subject { described_class.new(app, env) } before { subject.call(env) } after { FileUtils.rm_rf data_dir.to_s } it 'creates the directory to keep vagrant notify data' do data_dir.join('vagrant-notify').should be_directory end it 'assigns a data object to the environment' do env[:notify_data].should be_a(Vagrant::Notify::Data) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-notify-0.6.1 | spec/action/prepare_data_spec.rb |