andrew/split — pull request #82 by buddhamagnet (2012-10-31 21:18:08+00:00)
Title: Argument errors

Responding to andrew/split#81.

If you try and pass in integers or symbols as alternatives to the ab_test method, it raises InvalidArgument which is not defined anywhere, so a NameError is raised.

Swapped that undefined constant out for good old ArgumentError and added some specs to cover both sides of the boundary.