Permalink
Browse files

add spec for nil case

  • Loading branch information...
1 parent b14adb1 commit 704da3a1fd82f90e361a33b943c30295fb223794 @Capncavedan committed Nov 12, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/wheel_size_spec.rb
View
4 spec/wheel_size_spec.rb
@@ -12,6 +12,10 @@
GearRatio::WheelSize.circumference_of("700 X 25C").should eql 2105
end
+ it "is nil when unknown" do
+ GearRatio::WheelSize.circumference_of("bogus").should be_nil
+ end
+
end
end

0 comments on commit 704da3a

Please sign in to comment.