aboutsummaryrefslogtreecommitdiffstats
path: root/test/excelx/cell/test_empty.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/excelx/cell/test_empty.rb')
-rw-r--r--test/excelx/cell/test_empty.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/excelx/cell/test_empty.rb b/test/excelx/cell/test_empty.rb
index 8263714..e502a1d 100644
--- a/test/excelx/cell/test_empty.rb
+++ b/test/excelx/cell/test_empty.rb
@@ -4,4 +4,15 @@ class TestRooExcelxCellEmpty < Minitest::Test
def empty
Roo::Excelx::Cell::Empty
end
+
+ def test_empty?
+ cell = empty.new(nil)
+ assert_same true, cell.empty?
+ end
+
+ def test_nil_presence
+ cell = empty.new(nil)
+ assert_nil cell.presence
+ end
+
end