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