Veraticus/Dynamoid — pull request #94 by loganb (2012-12-23 07:50:58+00:00)
Title: DRY up aws_sdk_spec.rb

This Pull Request is best read as individual commits. I initially set out to fix one failing test that around scan_index_forward and partitioning. It turns out that's going to be very difficult as it will require doing a manual merge of data in Ruby.

In the mean time, I DRY'd up aws_sdk_spec.rb., merging a bunch of tests together into shared contexts to reduce the overall level of copy and paste. Also, I noticed that some tests were dependent on others being run to create the proper tables, so I added let statements that auto-create tables as needed and destroy them after each test, ensuring no cross-test dependencies.

Arguably, the total number of lines of code saved is quite small, but I figured it was worth the cleanup to reduce duplication. If there are no objections, I'll merge this myself on Monday.