Sha256: 453b942eb9ff654af85c5c4127140e16bf1db93521f666e96e3580aebb60de4d

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

require 'spec_helper'

describe Shoes::Text do
  include_context "dsl app"

  let(:link) { Shoes::Link.new(app, ['link']) }

  it "finds no links" do
    text = Shoes::Text.new(['text'])
    expect(text.links).to be_empty
  end

  it "finds a link" do
    text = Shoes::Text.new(['text', link])
    expect(text.links).to eq([link])
  end

  it "finds multiple" do
    text = Shoes::Text.new([Shoes::Text.new(['yo', link]), link])
    expect(text.links).to eq([link, link])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.pre7 spec/shoes/text_spec.rb