Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Oct 9, 2015
1 parent f0023f9 commit 7203226
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/miam/update_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@
{"Statement"=>
[{"Action"=>
["s3:Get*",
"s3:List*",
"s3:Put*"],
"s3:Put*",
"s3:List*"],
"Effect"=>"Allow",
"Resource"=>"*"}]}
end
Expand Down Expand Up @@ -209,8 +209,8 @@
{"Statement"=>
[{"Action"=>
["s3:Get*",
"s3:List*",
"s3:Put*"],
"s3:Put*",
"s3:List*"],
"Effect"=>"Allow",
"Resource"=>"*"}]}
end
Expand All @@ -225,9 +225,9 @@
it do
updated = apply(subject) { update_policy_dsl }
expect(updated).to be_truthy
expected[:users]["mary"][:policies]["S3"]["Statement"][0]["Action"] = ["s3:Get*", "s3:Put*", "s3:List*"]
expected[:users]["mary"][:policies]["S3"]["Statement"][0]["Action"] = ["s3:Get*", "s3:List*", "s3:Put*"]
expected[:groups]["SES"][:policies]["ses-policy"]["Statement"][0]["Action"] = "*"
expected[:roles]["my-role"][:policies]["role-policy"]["Statement"][0]["Action"] = ["s3:Get*", "s3:Put*", "s3:List*"]
expected[:roles]["my-role"][:policies]["role-policy"]["Statement"][0]["Action"] = ["s3:Get*", "s3:List*", "s3:Put*"]
expect(export).to eq expected
end
end
Expand Down

0 comments on commit 7203226

Please sign in to comment.