spec/tty/table/header_spec.rb in tty-0.0.11 vs spec/tty/table/header_spec.rb in tty-0.1.0

- old
+ new

@@ -1,14 +1,13 @@ -# -*- encoding: utf-8 -*- +# encoding: utf-8 require 'spec_helper' describe TTY::Table, '#header' do - let(:header) { [:header1, :header2] } let(:rows) { [['a1', 'a2'], ['b1', 'b2']] } let(:object) { described_class } - subject { object.new header, rows } + subject(:table) { object.new header, rows } - its(:header) { should be_instance_of TTY::Table::Header } + it { expect(table.header).to be_instance_of(TTY::Table::Header) } end