Added spec for Config
[vagrant-dotfiles.git] / spec / copy_my_conf / config_spec.rb
diff --git a/spec/copy_my_conf/config_spec.rb b/spec/copy_my_conf/config_spec.rb
new file mode 100644 (file)
index 0000000..4a2ffdc
--- /dev/null
@@ -0,0 +1,17 @@
+require "spec_helper"
+module Vagrant::Provisioners
+  class CopyMyConf < Base
+    describe Config do
+      it "should list all the true attributes" do
+        config = Config.new
+
+        config.vim = true
+        config.ssh = true
+
+        all_true_attributes = config.all_true
+        all_true_attributes.should =~ [:vim, :ssh]
+      end
+    end
+  end
+end
+