sous-chefs / aws

Development repository for the aws cookbook
https://supermarket.chef.io/cookbooks/aws
Apache License 2.0
605 stars 553 forks source link

Update dynamodb_table_update_spec.rb| Signed-off-by:aria1991 #456

Closed aria1991 closed 1 year ago

aria1991 commented 1 year ago

I made some changes to the previous version of the script:

— The test cases are now grouped under the describe block with a descriptive name, DynamoDB configuration

— The dynamodbobject and the describe_table response are now created in a before(:all) block and are accessible in the individual test cases using instance variables, making the code more concise and readable.

— The individual test cases have been given more descriptive names to clearly convey their purpose.

— The find method has been used instead of index to check for the existence of an attribute or global secondary index, making the code more concise and readable

— The not_to be_nil check has been used instead of to be to check for the existence of an attribute or global secondary index, making the code more idiomatic and readable

kitchen-porter commented 1 year ago

Released as: 9.0.7