spec/unit/border/new_spec.rb in tty-table-0.1.0 vs spec/unit/border/new_spec.rb in tty-table-0.2.0

- old
+ new

@@ -3,21 +3,21 @@ require 'spec_helper' RSpec.describe TTY::Table::Border, '#new' do let(:row) { [] } - subject(:instance) { klass.new row } + subject(:instance) { klass.new row, [0,0,0,0] } context 'when abstract' do let(:klass) { described_class } it { expect { instance }.to raise_error(NotImplementedError) } end context 'when concrete' do let(:klass) { Class.new do - def initialize(row); end + def initialize(row, padding); end end } it { expect { instance }.to_not raise_error() }