spec/renum_spec.rb in renum-1.0.0 vs spec/renum_spec.rb in renum-1.0.1
- old
+ new
@@ -93,6 +93,16 @@
end
it "supprts there being no extra data and no init() method defined, if you don't need them" do
HairColor::BLONDE.name.should == "BLONDE"
end
+end
+
+# It was reported on my blog that <=> was causing segfaults.
+# I'd love to figure out why, but first I'd love to fix that.
+describe "digging into this segfault/illegal instruction issue, renum" do
+ it "doesn't cause the ruby process to bomb!" do
+ Color::RED.should < Color::GREEN
+ Color::RED.should_not > Color::GREEN
+ Color::RED.should < Color::BLUE
+ end
end
\ No newline at end of file