Extracted Logic for vim in seperate class
[vagrant-dotfiles.git] / spec / copy_my_conf / vim_spec.rb
1 require "spec_helper"
2
3 module Vagrant
4 module Provisioners
5 class CopyMyConf < Base
6 describe Vim do
7 it "should copy dotfiles to temporary location in vagrant box" do
8 Vim.any_instance.stub(:`).and_return(nil)
9 vm = Object.new
10 tmp_root = "tmp_root"
11
12 vm.should_receive(:share_folder).with(anything, "#{tmp_root}/vim", "#{tmp_root}/vim")
13 vim = Vim.new
14
15 vim.prepare vm, tmp_root
16 end
17 end
18 end
19 end
20 end