Sha256: f8a6b860ac0f48f21f5b0efd27d6a676e9a6182404f3c1f70d3c78801bf6a966

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'

describe Rtml::Test::Simulator do
  context "with a receipt" do
    subject { Rtml::Test::Simulator.new(File.join(File.dirname(__FILE__), '../../../../support/raw_tml/receipt.tml')) }

    it "should clear the receipt buffer" do
      subject.press(:enter)
      subject.receipt.clear
      subject.receipt.should be_blank
    end

    it "should assign the printer output to the receipt" do
      subject.press(:enter)
      subject.receipt.strip.should == "<h1>This is printed content.</h1>"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtml-2.0.4 spec/lib/rtml/test/simulator/receipt_spec.rb