Sha256: fb1857ea615a3c100e20ce6bd80c1facb1495317a50520ade8aefe8a67bc4602
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
# coding: utf-8 require 'spec_helper' RSpec.describe TTY::Table::Indentation, '.indent' do context 'when enumerable' do it 'inserts indentation for each element' do expect(described_class.indent(['line1'], 2)).to eql([' line1']) end end context 'when string' do it 'inserts indentation' do expect(described_class.indent('line1', 2)).to eql(' line1') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-table-0.10.0 | spec/unit/indentation/indent_spec.rb |