Sha256: 0da55590fb488469b5fea95c076def97c01bb727070ea9b4f7c948948f2b495b
Contents?: true
Size: 549 Bytes
Versions: 21
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' require 'github_api/core_ext/hash' describe Github::Normalizer do let(:github) { Github.new } let(:repos_instance) { Github::Repos.new } let(:hash) { { :a => { :b => { :c => 1 } } } } context '#normalize!' do it 'converts hash keys to string' do ['a', 'b', 'c'].each do |key| github.repos.normalize!(hash).all_keys.should include key end [:a, :b, :c].each do |key| github.repos.normalize!(hash).all_keys.should_not include key end end end end # Github::Normalizer
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.6.1 | spec/github/normalizer_spec.rb |