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