Sha256: 209062a1525dccc518b62a7ef76721c2f748430110aae55114476b3508fa989b
Contents?: true
Size: 422 Bytes
Versions: 4
Compression:
Stored size: 422 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 { should == 1 } end context 'when symbol' do let(:attribute) { :id } let(:value) { 1 } it { should == 1 } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tty-0.0.11 | spec/tty/table/row/access_spec.rb |
tty-0.0.10 | spec/tty/table/row/access_spec.rb |
tty-0.0.9 | spec/tty/table/row/access_spec.rb |
tty-0.0.8 | spec/tty/table/row/access_spec.rb |