spec/tty/table/renderer/ascii/separator_spec.rb in tty-0.0.11 vs spec/tty/table/renderer/ascii/separator_spec.rb in tty-0.1.0

- old
+ new

@@ -1,6 +1,6 @@ -# -*- encoding: utf-8 -*- +# encoding: utf-8 require 'spec_helper' describe TTY::Table::Renderer::ASCII, 'with separator' do let(:header) { ['h1', 'h2', 'h3'] } @@ -12,10 +12,10 @@ subject(:renderer) { object } context 'when ascii' do it "renders each row" do renderer.border.separator= :each_row - renderer.render.should == <<-EOS.normalize + expect(renderer.render).to eq <<-EOS.normalize +--+--+--+ |h1|h2|h3| +--+--+--+ |a1|a2|a3| +--+--+--+