Sha256: 904403f140bac3f3bcb5068043d0c16891fd8c1c81edaf5e7706236ca5c69ef9
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
require "spec_helper_lite" require "undo/container/json" describe Undo::Container::Json do let(:container) { described_class.new } it "packs to json" do json = container.pack "hello" => "world" expect(json).to eq '{"hello":"world"}' end it "unpaks from json" do hash = container.unpack '{"hello":"world"}' expect(hash).to eq "hello" => "world" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
undo-1.0.0 | spec/undo/container/json_spec.rb |