spec/shell/basic_spec.rb in thor-0.13.6 vs spec/shell/basic_spec.rb in thor-0.13.7

- old
+ new

@@ -129,9 +129,18 @@ abc #123 firs... #0 empty xyz #786 last... TABLE end + + it "honors the colwidth option" do + content = capture(:stdout){ shell.print_table(@table, :colwidth => 10)} + content.must == <<-TABLE +abc #123 first three + #0 empty +xyz #786 last three +TABLE + end end describe "#file_collision" do it "shows a menu with options" do $stdout.should_receive(:print).with('Overwrite foo? (enter "h" for help) [Ynaqh] ')