Sha256: 8424b97604352a9338fe70186f1c58c2563afd18add7d4e53eb1376eacd4cf41
Contents?: true
Size: 476 Bytes
Versions: 3
Compression:
Stored size: 476 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe TTY::Table::Renderer::Basic, '.new' do let(:header) { ['h1'] } let(:rows) { [['a1']] } subject(:renderer) { described_class } context 'without table' do let(:table) { nil } it { expect { renderer.new(table) }.to raise_error(TTY::ArgumentRequired) } end context 'with table' do let(:table) { TTY::Table.new(header, rows) } it { expect { renderer.new(table) }.not_to raise_error } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/renderer/basic/new_spec.rb |
tty-0.1.1 | spec/tty/table/renderer/basic/new_spec.rb |
tty-0.1.0 | spec/tty/table/renderer/basic/new_spec.rb |