Extracted Logic for vim in seperate class
[vagrant-dotfiles.git] / spec / copy_my_conf / vim_spec.rb
diff --git a/spec/copy_my_conf/vim_spec.rb b/spec/copy_my_conf/vim_spec.rb
new file mode 100644 (file)
index 0000000..fb0a56e
--- /dev/null
@@ -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