spec/callable_spec.rb in callable-0.0.4 vs spec/callable_spec.rb in callable-0.0.5
- old
+ new
@@ -79,7 +79,13 @@
spec "returns the default value when passing nil" do
@c = Callable(nil, default: "DEFAULT VALUE")
@c.call == "DEFAULT VALUE"
end
+
+ spec "the default default value is nil" do
+ @c = Callable(nil)
+
+ @c.call == nil
+ end
end
end