Sha256: f3fe5b94d78054a1df9d687445338c788a177a07b82b0164e64906b858cb5a6b
Contents?: true
Size: 436 Bytes
Versions: 10
Compression:
Stored size: 436 Bytes
Contents
# coding: utf-8 require 'spec_helper' RSpec.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
10 entries across 10 versions & 1 rubygems