From 00131d5ed6277808431c90713e4379be5f8a3264 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 22 Nov 2010 11:27:10 +0000 Subject: [PATCH] small spec cleanup --- spec/finder_spec.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spec/finder_spec.rb b/spec/finder_spec.rb index bc78fed..1200319 100644 --- a/spec/finder_spec.rb +++ b/spec/finder_spec.rb @@ -82,11 +82,7 @@ describe Redistat::Finder do end it "should throw error on invalid options" do - begin - stats = Redistat::Finder.find(:from => 3.hours.ago) - rescue ArgumentError => e - e.class.to_s.should == "Redistat::InvalidOptions" - end + lambda { Redistat::Finder.find(:from => 3.hours.ago) }.should raise_error(Redistat::InvalidOptions) end