Monthly Archives: August 2011

Testing Command-Line Gems with Cucumber and Aruba

Here at Solano Labs we package much of the code we deploy as gems. This includes the tddium command line interface as well as internal tools. As you would expect, we use a combination of RSpec and Cucumber to test these tools. We’ve found Cucumber and Aruba to be particularly useful tools for testing the […]


Rails Time Comparisons: Devil, Details, etc.

Have you ever seen an error in your code where two timestamps that are the same fail a comparison test? [sourcecode] 1) SomeController#update sets updated_at to current time Failure/Error: something.reload.updated_at.should == expected: 2011-08-04 15:09:26 +0000, got: Thu, 04 Aug 2011 15:09:26 UTC +00:00 (using ==) Diff: @@ -1,2 +1,2 @@ -2011-08-04 15:09:26 +0000 +Thu, […]


Entropy in the Cloud

Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin. -John Von Neumann Good sources of random bits are hard to come by, particularly in the cloud. Pseudo-random generators (PRG), particularly cryptographically secure ones are something of a dark art. All of them depend upon the quality (or […]

Leave a comment