Sha256: 8f966f56d74c3e53a8cc656e3fd89bb1084da55b67cd0a4aa6aef656dc053f6a

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

require 'spec_helper'

describe Rdpl::BitmappedText do

  it_should_behave_like "element"

  describe "#to_s" do
    it "should return a string represention of the text element" do
      text = Rdpl::BitmappedText.new(
        :font_id           => 2,
        :width_multiplier  => 2,
        :height_multiplier => 3,
        :row_position      => 20,
        :column_position   => 30,
        :data              => 'HEY LOOK AT ME'
      )
      text.to_s.should == '122300000200030HEY LOOK AT ME'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdpl-0.2.0 spec/elements/bitmapped_text_spec.rb
rdpl-0.1.0 spec/elements/bitmapped_text_spec.rb