Sha256: 4a63799d68b0b71e9d09c93d9d371f6379e25a63b7b3e105dcce0d27eaf62667
Contents?: true
Size: 640 Bytes
Versions: 8
Compression:
Stored size: 640 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe TTY::Table, '#eql?' do let(:rows) { [['a1', 'a2'], ['b1', 'b2']] } let(:object) { described_class.new rows } subject { object.eql?(other) } describe '#inspect' do it { object.inspect.should =~ /#<TTY::Table/ } end context 'with the same object' do let(:other) { object } it { should be_true } it 'is symmetric' do should eql(other.eql?(object)) end end context 'with an equivalent object' do let(:other) { object.dup } it { should be_true } it 'is symmetric' do should eql(other.eql?(object)) end end end
Version data entries
8 entries across 8 versions & 1 rubygems