spec/vagrant-rackspace/config_spec.rb in vagrant-rackspace-0.1.9 vs spec/vagrant-rackspace/config_spec.rb in vagrant-rackspace-0.1.10
- old
+ new
@@ -23,10 +23,11 @@
its(:username) { should be_nil }
its(:disk_config) { should be_nil }
its(:networks) { should be_nil }
its(:rsync_includes) { should be_nil }
its(:admin_password) { should be_nil }
+ its(:init_script) { should be_nil }
end
describe "overriding defaults" do
[:api_key,
:rackspace_region,
@@ -37,11 +38,12 @@
:public_key_path,
:rackconnect,
:server_name,
:disk_config,
:username,
- :admin_password].each do |attribute|
+ :admin_password,
+ :init_script].each do |attribute|
it "should not default #{attribute} if overridden" do
subject.send("#{attribute}=".to_sym, "foo")
subject.finalize!
subject.send(attribute).should == "foo"
end
@@ -54,10 +56,10 @@
subject.send(:networks).should include(net_id)
subject.send(:networks).should include(VagrantPlugins::Rackspace::Config::PUBLIC_NET_ID)
subject.send(:networks).should include(VagrantPlugins::Rackspace::Config::SERVICE_NET_ID)
end
- it "should not default rsync_includes if overridden" do
+ it "should not default rsync_includes if overridden" do
inc = "core"
subject.send(:rsync_include, inc)
subject.finalize!
subject.send(:rsync_includes).should include(inc)
end