Sha256: ba6c4abcc96315ceb63feede9ac8f41f72d182cbb4b9e500669a4b15541bda5b

Contents?: true

Size: 379 Bytes

Versions: 10

Compression:

Stored size: 379 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

RSpec.describe TTY::Table::BorderOptions do

  subject { described_class.new(options) }

  context 'with characters' do
    let(:options) { {top: '**'} }

    it { expect(subject.characters).to eq({top:'**'}) }
  end

  context 'without characters' do
    let(:options) { nil }

    it { expect(subject.characters).to eq({}) }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tty-table-0.10.0 spec/unit/border_options/new_spec.rb
tty-table-0.9.0 spec/unit/border_options/new_spec.rb
tty-table-0.8.0 spec/unit/border_options/new_spec.rb
tty-table-0.7.0 spec/unit/border_options/new_spec.rb
tty-table-0.6.0 spec/unit/border_options/new_spec.rb
tty-table-0.5.0 spec/unit/border_options/new_spec.rb
tty-table-0.4.0 spec/unit/border_options/new_spec.rb
tty-table-0.3.0 spec/unit/border_options/new_spec.rb
tty-table-0.2.0 spec/unit/border_options/new_spec.rb
tty-table-0.1.0 spec/unit/border_options/new_spec.rb