Sha256: b675d95f93b830e9e60f4b9b61e2afd4af76fb4acccd856ccc069921b75a3f0d
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe TTY::Table::Operation::Filter, '#call' do let(:object) { described_class } let(:field) { TTY::Table::Field.new('a1') } let(:filter) { Proc.new { |val, row, col| 'new' } } let(:value) { 'new' } subject { object.new(filter) } it 'changes field value' do subject.call(field, 0, 0) expect(field.value).to eql(value) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/operation/filter/call_spec.rb |
tty-0.1.1 | spec/tty/table/operation/filter/call_spec.rb |
tty-0.1.0 | spec/tty/table/operation/filter/call_spec.rb |