Sha256: b1f5d7684242d802583d09087ab4a002df8b716d81f211eafd56f44b39974ccf

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

require "spec_helper"

RSpec.describe Hash do
  describe "#to_burlap" do
    subject(:burlap) { { some: "hash" }.to_burlap }

    it "returns a string" do
      expect(burlap).to be_a_kind_of(String)
    end

    it "is correct" do
      expect(burlap).to eq("<map><type></type><string>some</string><string>hash</string></map>")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
burlap-1.0.0 spec/burlap/core_ext/hash_spec.rb