spec/tty/table/renderer_spec.rb in tty-0.0.1 vs spec/tty/table/renderer_spec.rb in tty-0.0.2

- old
+ new

@@ -13,10 +13,12 @@ after do TTY::Table.renderer = basic_renderer end + it { should respond_to(:render) } + it 'sets basic renderer' do TTY::Table.renderer.should be TTY::Table::Renderer::Basic end it 'has instance renderer' do @@ -31,7 +33,12 @@ it 'allows to set global renderer' do TTY::Table.renderer = unicode_renderer 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' end end