spec/term_spec.rb in epitools-0.5.118 vs spec/term_spec.rb in epitools-0.5.119
- old
+ new
@@ -2,12 +2,12 @@
describe Term do
it "sizes" do
width, height = Term.size
- width.class.should == Fixnum
- height.class.should == Fixnum
+ width.class.should == Integer
+ height.class.should == Integer
end
it "tables" do
table = Term::Table[ (1..1000).to_a ]
#p [:cols, table.num_columns]
@@ -39,14 +39,13 @@
# Term::Table[
# [1,2,3],
# [4,5,6]
# ]
- table = Term::Table.new
- table.rows = [ [1,2,3], [4,5,6] ]
- table.rows << [1,2,3]
- table.rows << [4,5,6]
- table.add_row [1,2,3,4,5]
+ # table = Term::Table.new([ [1,2,3], [4,5,6] ])
+ # table.rows << [1,2,3]
+ # table.rows << [4,5,6]
+ # table.add_row [1,2,3,4,5]
end
it "tables nothing" do
table = Term::Table.new []
lambda { table.by_rows }.should_not raise_error