Sha256: 0716c8b4d31e989dc36eda27131f051f4114d1d17751d9a090191c1b1baecef8

Contents?: true

Size: 307 Bytes

Versions: 9

Compression:

Stored size: 307 Bytes

Contents

# encoding: utf-8

require "spec_helper"

describe Sie::Document::Renderer, "#add_line" do
  it "replaces input of the wrong encoding with '?'" do
    renderer = Sie::Document::Renderer.new
    renderer.add_line "Hello ☃", 1
    output = renderer.render

    expect(output).to eq "#Hello ? 1\n"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sie-4.1.0 spec/unit/document/renderer_spec.rb
sie-4.0.0 spec/unit/document/renderer_spec.rb
sie-3.3.0 spec/unit/document/renderer_spec.rb
sie-3.2.0 spec/unit/document/renderer_spec.rb
sie-3.1.1 spec/unit/document/renderer_spec.rb
sie-3.0.1 spec/unit/document/renderer_spec.rb
sie-3.0.0 spec/unit/document/renderer_spec.rb
sie-2.2.0 spec/unit/document/renderer_spec.rb
sie-2.1.0 spec/unit/document/renderer_spec.rb