spec/option_spec.rb in option-1.0.1 vs spec/option_spec.rb in option-1.1.0
- old
+ new
@@ -1,8 +1,16 @@
require "spec_helper"
describe NoneClass do
+ it "#dup results in a TypeError" do
+ lambda { None.dup }.must_raise TypeError
+ end
+
+ it "#clone results in a TypeError" do
+ lambda { None.clone }.must_raise TypeError
+ end
+
it "#to_a returns an empty array" do
None.to_a.must_equal([])
end
it "#get raises IndexError" do