spec/extensions/pretty_table_spec.rb in sequel-3.33.0 vs spec/extensions/pretty_table_spec.rb in sequel-3.34.0

- old
+ new

@@ -61,9 +61,15 @@ @output.rewind @output.read.should =~ \ /\n(\|x\|y\|)|(\|y\|x\|)\n/ end + specify "should have #string return the string without printing" do + Sequel::PrettyTable.string(@data1).should =~ /\n(\|x\|y\|)|(\|y\|x\|)\n/ + @output.rewind + @output.read.should == '' + end + specify "should calculate the maximum width of each column correctly" do Sequel::PrettyTable.print(@data2, [:a, :b]) @output.rewind @output.read.should == \ "+--+----+\n|a |b |\n+--+----+\n|23| 45|\n|45|2377|\n+--+----+\n"