Skip to content

Commit

Permalink
fix security_groups override test
Browse files Browse the repository at this point in the history
  • Loading branch information
tralamazza committed Dec 17, 2013
1 parent 532690d commit 46b4001
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/vagrant-aws/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# and asserts the proper result comes back out.
[:access_key_id, :ami, :availability_zone, :instance_ready_timeout,
:instance_type, :keypair_name, :ssh_host_attribute, :ebs_optimized,
:region, :secret_access_key, :security_groups, :monitoring,
:region, :secret_access_key, :monitoring,
:subnet_id, :tags, :elastic_ip, :terminate_on_shutdown,
:iam_instance_profile_arn, :iam_instance_profile_name,
:use_iam_profile, :user_data, :block_device_mapping].each do |attribute|
Expand All @@ -57,6 +57,11 @@
instance.send(attribute).should == "foo"
end
end
it "should not default security_groups if overridden" do
instance.security_groups = "foo"
instance.finalize!
instance.security_groups.should == ["foo"]
end
end

describe "getting credentials from environment" do
Expand Down

0 comments on commit 46b4001

Please sign in to comment.