Sha256: 3cc75912f1f05fd153db17a04a8cb2a0f48d529ab85bcd070f9d6f6585fc9728

Contents?: true

Size: 518 Bytes

Versions: 18

Compression:

Stored size: 518 Bytes

Contents

require 'spec_helper'
require 'aruba/platform'

RSpec.describe '.simple_table' do
  context 'when valid hash' do
    let(:hash) do
      {
        :key1 => 'value',
        :key2 => 'value'
      }
    end
    let(:rows) { ['# key1 => value', '# key2 => value'] }

    it { expect(Aruba.platform.simple_table(hash).to_s).to eq rows.join("\n") }
  end

  context 'when empty hash' do
    let(:hash) { {} }
    let(:rows) { [] }

    it { expect(Aruba.platform.simple_table(hash).to_s).to eq rows.join("\n") }
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
aruba-0.14.14 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.13 spec/aruba/platform/simple_table_spec.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/spec/aruba/platform/simple_table_spec.rb
aruba-0.14.12 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.11 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.10 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.9 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.8 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.7 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.6 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.5 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.4 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.3 spec/aruba/platform/simple_table_spec.rb
aruba-win-fix-0.14.2 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.2 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.1 spec/aruba/platform/simple_table_spec.rb
aruba-0.14.0 spec/aruba/platform/simple_table_spec.rb
aruba-0.13.0 spec/aruba/platform/simple_table_spec.rb