Sha256: eaff5af05a7968ec4ca6f396787b977ce8322a0cf1373711727bc1317cda894b

Contents?: true

Size: 628 Bytes

Versions: 2

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'

require_relative 'expected'

describe "Specification Example A - Write Text File" do
  it "Generates Expected Output" do
    command = MovingsignApi::WriteTextCommand.new

    command.sender = :pc
    command.receiver = 3

    command.file_handle = 'A' # aka 10
    command.display_mode = :auto
    command.display_speed = :faster
    command.display_pause = 2
    command.dayofweek_mask = '7F' # todo: make this pretty
    command.start_time = '0100'
    command.end_time = '1200'
    command.align_mode = :left
    command.text = 'HELLO'

    expect(command.to_bytes).to eq EXAMPLE_A_EXPECTED
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
movingsign_api-0.0.2 spec/examples/example_A_spec.rb
movingsign_api-0.0.1 spec/examples/example_A_spec.rb