spec/option_spec.rb in option-0.0.4 vs spec/option_spec.rb in option-0.1.0
- old
+ new
@@ -30,12 +30,12 @@
it "#or_nil should return nil" do
None.or_nil.must_be_nil
end
- it "#defined? should be false" do
- None.defined?.must_equal(false)
+ it "#present? should be false" do
+ None.present?.must_equal(false)
end
it "#empty? should be true" do
None.empty?.must_equal(true)
end
@@ -91,11 +91,11 @@
it "#or_nil should return the inner value" do
Some(value).or_nil.must_equal(value)
end
- it "#defined? should be true" do
- Some(value).defined?.must_equal(true)
+ it "#present? should be true" do
+ Some(value).present?.must_equal(true)
end
it "#empty? should be false" do
Some(value).empty?.must_equal(false)
end