Sha256: 013cd02a6018635b3fb1c32e66e9209fd9c161a68c3792f8fb6f403876224486

Contents?: true

Size: 546 Bytes

Versions: 10

Compression:

Stored size: 546 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

require "jenkins/core_ext/hash"

describe Hash do
  subject do
    {
      :simple => "simple",
      :under_score => "under_score",
      :"hyp-hen" => "hyphen",
      "str_under_score" => "str_under_score",
      "str-hyp-hen" => "str-hyp-hen"
    }
  end
  
  it do
    subject.with_clean_keys.should == {
      :simple => "simple",
      :under_score => "under_score",
      :hyp_hen => "hyphen",
      :str_under_score => "str_under_score",
      :str_hyp_hen => "str-hyp-hen"
    }
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
jenkins-maestrodev-0.6.9 spec/hash_key_cleaner_spec.rb
jenkins-0.6.8 spec/hash_key_cleaner_spec.rb
jenkins-0.6.6 spec/hash_key_cleaner_spec.rb
jenkins-0.6.5 spec/hash_key_cleaner_spec.rb
akqa-jenkins-0.6.4.1 spec/hash_key_cleaner_spec.rb
jenkins-0.6.4 spec/hash_key_cleaner_spec.rb
jenkins-0.6.3 spec/hash_key_cleaner_spec.rb
jenkins-0.6.2 spec/hash_key_cleaner_spec.rb
jenkins-0.6.1 spec/hash_key_cleaner_spec.rb
jenkins-0.6.0 spec/hash_key_cleaner_spec.rb