Sha256: 23303a8dd5081c75e69181e82177b086774de81b2cfa03af5668610532c4e850
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe TTY::Table::Operation::Escape, '#call' do let(:object) { described_class } let(:text) { "太丸\nゴシ\tック体\r" } let(:field) { TTY::Table::Field.new(text) } subject { object.new } it 'changes field value' do subject.call(field, 0, 0) expect(field.value).to eql("太丸\\nゴシ\\tック体\\r") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/operation/escape/call_spec.rb |
tty-0.1.1 | spec/tty/table/operation/escape/call_spec.rb |
tty-0.1.0 | spec/tty/table/operation/escape/call_spec.rb |