Sha256: 49ea35513ee9600621c3dffa34b8baa3e67e0d2b9d60e48fbc40834d4532b30b

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

# encoding: utf-8

require "transproc/rspec"

describe AbstractMapper::Functions, "#restrict" do

  let(:arguments) { [:restrict, default] }
  let(:default)   { { foo: :FOO, bar: :BAR } }

  it_behaves_like :transforming_immutable_data do

    let(:input)  { { foo: :BAZ, qux: :QUX } }
    let(:output) { { foo: :BAZ, bar: :BAR } }
  end

end # describe AbstractMapper::Functions#restrict

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
abstract_mapper-0.0.2 spec/unit/abstract_mapper/functions/restrict_spec.rb