Sha256: 0f85324f3d3f4884018a3871e8e80b025a1549711d02c2003c5d37ae4e792e1e
Contents?: true
Size: 445 Bytes
Versions: 5
Compression:
Stored size: 445 Bytes
Contents
require "test_helper" class PrivateOptionsTest < MiniTest::Spec # TODO: move me to separate file. representer!(decorator: true) do end options = {exclude: "name"} it "render: doesn't modify options" do representer.new(nil).to_hash(options) _(options).must_equal({exclude: "name"}) end it "parse: doesn't modify options" do representer.new(nil).from_hash(options) _(options).must_equal({exclude: "name"}) end end
Version data entries
5 entries across 5 versions & 3 rubygems