spec/unit/config_spec.rb in vagrant-skytap-0.2.4 vs spec/unit/config_spec.rb in vagrant-skytap-0.2.5
- old
+ new
@@ -48,13 +48,9 @@
its("ram") { should be_nil }
its("guestos") { should be_nil }
end
describe "overriding defaults" do
- # I typically don't meta-program in tests, but this is a very
- # simple boilerplate test, so I cut corners here. It just sets
- # each of these attributes to "foo" in isolation, and reads the value
- # and asserts the proper result comes back out.
[:username, :api_token, :base_url, :vm_url,
:vpn_url, :instance_ready_timeout,
:cpus, :cpuspersocket, :ram, :guestos].each do |attribute|
it "should not default #{attribute} if overridden" do
instance.send("#{attribute}=".to_sym, "foo")