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

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/representable-3.2.0/test/private_options_test.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/representable-3.2.0/test/private_options_test.rb
representable-3.2.0 test/private_options_test.rb
representable-3.1.1 test/private_options_test.rb
representable-3.1.0 test/private_options_test.rb