aboutsummaryrefslogtreecommitdiffstats
path: root/test/csv/test_table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/csv/test_table.rb')
-rwxr-xr-xtest/csv/test_table.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/csv/test_table.rb b/test/csv/test_table.rb
index 318825f2b1..ec710d30cc 100755
--- a/test/csv/test_table.rb
+++ b/test/csv/test_table.rb
@@ -398,23 +398,24 @@ class TestCSV::Table < TestCSV
end
def test_array_delegation
- assert(!@table.empty?, "Table was empty.")
+ assert_not_empty(@table, "Table was empty.")
assert_equal(@rows.size, @table.size)
end
def test_inspect_shows_current_mode
str = @table.inspect
- assert(str.include?("mode:#{@table.mode}"), "Mode not shown.")
+ assert_include(str, "mode:#{@table.mode}", "Mode not shown.")
@table.by_col!
str = @table.inspect
- assert(str.include?("mode:#{@table.mode}"), "Mode not shown.")
+ assert_include(str, "mode:#{@table.mode}", "Mode not shown.")
end
def test_inspect_encoding_is_ascii_compatible
- assert( Encoding.compatible?( Encoding.find("US-ASCII"),
- @table.inspect.encoding ),
+ assert_send([Encoding, :compatible?,
+ Encoding.find("US-ASCII"),
+ @table.inspect.encoding],
"inspect() was not ASCII compatible." )
end
end