summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet/tc_cell_protection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/stylesheet/tc_cell_protection.rb')
-rw-r--r--test/stylesheet/tc_cell_protection.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/stylesheet/tc_cell_protection.rb b/test/stylesheet/tc_cell_protection.rb
index 253b6c82..631192de 100644
--- a/test/stylesheet/tc_cell_protection.rb
+++ b/test/stylesheet/tc_cell_protection.rb
@@ -8,19 +8,19 @@ class TestCellProtection < Test::Unit::TestCase
def teardown; end
def test_initialiation
- assert_equal(@item.hidden, nil)
- assert_equal(@item.locked, nil)
+ assert_nil(@item.hidden)
+ assert_nil(@item.locked)
end
def test_hidden
assert_raise(ArgumentError) { @item.hidden = -1 }
assert_nothing_raised { @item.hidden = false }
- assert_equal(@item.hidden, false)
+ refute(@item.hidden)
end
def test_locked
assert_raise(ArgumentError) { @item.locked = -1 }
assert_nothing_raised { @item.locked = false }
- assert_equal(@item.locked, false)
+ refute(@item.locked)
end
end