spec/tty/table/header/to_ary_spec.rb in tty-0.0.11 vs spec/tty/table/header/to_ary_spec.rb in tty-0.1.0

- old
+ new

@@ -1,14 +1,14 @@ -# -*- encoding: utf-8 -*- +# encoding: utf-8 require 'spec_helper' describe TTY::Table::Header, '#to_ary' do - let(:object) { described_class.new(attributes) } + let(:object) { described_class.new(attributes) } let(:attributes) { [:id, :name, :age] } subject { object.to_ary } - it { should be_instance_of(Array) } + it { is_expected.to be_instance_of(Array) } - it { should == attributes } + it { is_expected.to eq(attributes) } end