X-Git-Url: https://pwan.org/git/?p=vagrant-dotfiles.git;a=blobdiff_plain;f=spec%2Fcopy_my_conf%2Fvim_spec.rb;fp=spec%2Fcopy_my_conf%2Fvim_spec.rb;h=fb0a56e26f4351abc77bc4b466db40468d09d5e5;hp=0000000000000000000000000000000000000000;hb=d0fd407a03a85403a28f0d14d9f36cc264d07282;hpb=2a7fb02fbf510e8475a65ed5a76b879aa4cb841e diff --git a/spec/copy_my_conf/vim_spec.rb b/spec/copy_my_conf/vim_spec.rb new file mode 100644 index 0000000..fb0a56e --- /dev/null +++ b/spec/copy_my_conf/vim_spec.rb @@ -0,0 +1,20 @@ +require "spec_helper" + +module Vagrant + module Provisioners + class CopyMyConf < Base + describe Vim do + it "should copy dotfiles to temporary location in vagrant box" do + Vim.any_instance.stub(:`).and_return(nil) + vm = Object.new + tmp_root = "tmp_root" + + vm.should_receive(:share_folder).with(anything, "#{tmp_root}/vim", "#{tmp_root}/vim") + vim = Vim.new + + vim.prepare vm, tmp_root + end + end + end + end +end \ No newline at end of file