small spec cleanup

This commit is contained in:
2010-11-22 11:27:10 +00:00
parent 286b3ef851
commit 00131d5ed6

View File

@@ -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