Sha256: e56f4f21933df409cf5ade1fbc7a9962247a588353e41922f7868dd55ca9c7bb

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

require 'helper'

describe Plucky::Normalizers::HashKey do
  subject {
    described_class.new(:bacon => :sizzle)
  }

  it "changes defined fields" do
    subject.call(:bacon).should eq(:sizzle)
  end

  it "does not change undefined fields" do
    subject.call(:sausage).should eq(:sausage)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plucky-0.8.0 spec/plucky/normalizers/hash_key_spec.rb
plucky-0.7.0 spec/plucky/normalizers/hash_key_spec.rb
plucky-0.6.6 spec/plucky/normalizers/hash_key_spec.rb
plucky-0.6.5 spec/plucky/normalizers/hash_key_spec.rb