spec/tty/table/renderer_spec.rb in tty-0.0.3 vs spec/tty/table/renderer_spec.rb in tty-0.0.4
- old
+ new
@@ -36,9 +36,9 @@
table = TTY::Table.new
table.renderer.should be_kind_of(unicode_renderer)
end
it 'delegates to renderer' do
- table = TTY::Table.new
- table.render( [['a']] ).should == 'a'
+ table = TTY::Table.new [['a']]
+ table.render(table).should == 'a'
end
end