Sha256: 9e3634503a363b4cb8e8549480be4e732d4c52f3b3a0d693281d50f5a242beec

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

require "spec_helper_lite"
require "undo/serializer/null"

describe Undo::Serializer::Null do
  let(:object) { double :object }

  describe "returns passed argument" do
    specify "#serialize" do
      expect(subject.serialize object).to eq object
    end

    specify "#deserialize" do
      expect(subject.deserialize object).to eq object
    end
  end

  it "accepts options" do
    options = { foo: :bar }
    expect do
      subject.serialize object, options
      subject.deserialize object, options
    end.not_to raise_error
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
undo-1.0.0 spec/undo/serializer/null_spec.rb