Sha256: cd285c2c8f1305a367e04c77906f345dc3fd134c51732528b32dc20bbc25eb39
Contents?: true
Size: 680 Bytes
Versions: 6
Compression:
Stored size: 680 Bytes
Contents
# coding: utf-8 require 'spec_helper' RSpec.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 { expect(object.inspect).to match(/#<TTY::Table/) } end context 'with the same object' do let(:other) { object } it { is_expected.to eql(true) } it 'is symmetric' do is_expected.to eql(other.eql?(object)) end end context 'with an equivalent object' do let(:other) { object.dup } it { is_expected.to eql(true) } it 'is symmetric' do is_expected.to eql(other.eql?(object)) end end end
Version data entries
6 entries across 6 versions & 1 rubygems