Sha256: 31a2c9ed9fede5fe4794c0bb0868f0c2b3e96350d81ed65af766080f0a620959
Contents?: true
Size: 486 Bytes
Versions: 15
Compression:
Stored size: 486 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 eq rows } end context 'when empty hash' do let(:hash) { {} } let(:rows) { [] } it { expect(Aruba.platform.simple_table(hash)).to eq rows } end end
Version data entries
15 entries across 15 versions & 1 rubygems