X-Git-Url: https://pwan.org/git/?p=vagrant-dotfiles.git;a=blobdiff_plain;f=spec%2Fcopy_my_conf%2Fconfig_spec.rb;fp=spec%2Fcopy_my_conf%2Fconfig_spec.rb;h=5e1334da65f9263af71ba0a5f4d7ed78e5ff007a;hp=4a2ffdc47e3af4109efa5c4ed56677706eb2deae;hb=2254852606b5104c60f643724a827701ae0c9c81;hpb=08b150e7415fcdaca5277bee264dda740369063f diff --git a/spec/copy_my_conf/config_spec.rb b/spec/copy_my_conf/config_spec.rb index 4a2ffdc..5e1334d 100644 --- a/spec/copy_my_conf/config_spec.rb +++ b/spec/copy_my_conf/config_spec.rb @@ -5,11 +5,11 @@ module Vagrant::Provisioners it "should list all the true attributes" do config = Config.new - config.vim = true - config.ssh = true + config.vim + config.ssh - all_true_attributes = config.all_true - all_true_attributes.should =~ [:vim, :ssh] + all_enabled_attributes = config.all_enabled_attributes + all_enabled_attributes.map(&:class) =~ [Vim, Ssh] end end end