X-Git-Url: https://pwan.org/git/?p=vagrant-dotfiles.git;a=blobdiff_plain;f=spec%2Fcopy_my_conf_spec.rb;fp=spec%2Fcopy_my_conf_spec.rb;h=10b02477a0200c52e33a1c8594cec583a7aabd61;hp=b471ff348d2a59102dd97ca86451d645615c5fe1;hb=2254852606b5104c60f643724a827701ae0c9c81;hpb=08b150e7415fcdaca5277bee264dda740369063f diff --git a/spec/copy_my_conf_spec.rb b/spec/copy_my_conf_spec.rb index b471ff3..10b0247 100644 --- a/spec/copy_my_conf_spec.rb +++ b/spec/copy_my_conf_spec.rb @@ -18,14 +18,14 @@ module Vagrant end it "should prepare provisioning process" do - @config.should_receive(:all_true).and_return([:vim]) + @config.should_receive(:all_enabled_attributes).and_return([CopyMyConf::Vim.new]) CopyMyConf::Vim.any_instance.should_receive(:prepare).with(@mock_vm, anything) CopyMyConf.new.prepare end it "should provision the vm" do - @config.stub(:all_true).and_return([:vim]) + @config.stub(:all_enabled_attributes).and_return([CopyMyConf::Vim.new]) copy_my_conf = CopyMyConf.new CopyMyConf::Vim.any_instance.stub(:prepare)