Sha256: 322e45eb02bdfcdf5671dbc7b08bdd9cf62ae3e62df736be2d4db69afc219d9b
Contents?: true
Size: 432 Bytes
Versions: 3
Compression:
Stored size: 432 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe TTY::Table::Row, '#access' do let(:object) { described_class.new [] } before { object[attribute] = value} subject { object[attribute] } context 'when integer' do let(:attribute) { 0 } let(:value) { 1 } it { is_expected.to eq(1) } end context 'when symbol' do let(:attribute) { :id } let(:value) { 1 } it { is_expected.to eq(1) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/row/access_spec.rb |
tty-0.1.1 | spec/tty/table/row/access_spec.rb |
tty-0.1.0 | spec/tty/table/row/access_spec.rb |