Sha256: a12e2ad845813af27d6ec5aa161c22c6d67d1106abc223eb955ee355b0f3c287
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
require 'spec_helper' describe Shoes::Swt::TextBlock::CenteredTextSegment do let(:width) { 200 } let(:dsl) { double("dsl", text: "boo", font: "", size: 16, style: {}) } subject { Shoes::Swt::TextBlock::CenteredTextSegment.new(dsl, width) } it "takes all the width it can get" do expect(subject.width).to eq(width) end it "calls last line width the full width" do expect(subject.last_line_width).to eq(width) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-swt-4.0.0.pre7 | spec/shoes/swt/text_block/centered_text_segment_spec.rb |