Sha256: 0cc0ca82db7ea144f404d9bddd71da2f15229d9c09bd28e9271faeb2a9639b7a
Contents?: true
Size: 361 Bytes
Versions: 4
Compression:
Stored size: 361 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe TTY::Table::Field, '#width' do let(:object) { described_class } subject { object.new value } context 'with only value' do let(:value) { 'foo' } its(:width) { should == 3 } end context 'with hash value' do let(:value) { "foo\nbaar" } its(:width) { should == 8 } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tty-0.0.11 | spec/tty/table/field/width_spec.rb |
tty-0.0.10 | spec/tty/table/field/width_spec.rb |
tty-0.0.9 | spec/tty/table/field/width_spec.rb |
tty-0.0.8 | spec/tty/table/field/width_spec.rb |