Sha256: b98bec14a4e4693088183ce0a24613b33ec11bc34db42eef9943152b1480a8ec

Contents?: true

Size: 306 Bytes

Versions: 3

Compression:

Stored size: 306 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TTY::Text::Distance, '#initialize' do
  let(:strings) { ['abc', 'acb'] }

  subject(:distance) { described_class.new(*strings) }

  it { expect(distance.first).to eq(strings.first) }

  it { expect(distance.second).to eq(strings.last) }

end # initialize

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tty-0.1.2 spec/tty/text/distance/initialize_spec.rb
tty-0.1.1 spec/tty/text/distance/initialize_spec.rb
tty-0.1.0 spec/tty/text/distance/initialize_spec.rb