Sha256: 79a3700558ee59b19916716229f7d743b7520a78628c02c04b2376347d8739c1
Contents?: true
Size: 737 Bytes
Versions: 11
Compression:
Stored size: 737 Bytes
Contents
require 'spec_helper' describe Aigu::EmberExporter do describe :flattenize_hash do let(:exporter) { Aigu::EmberExporter.new } let(:flattenized_content) { exporter.send(:flattenize_hash, content) } let(:content) do { 'foo' => { 'bar' => 'Bar', 'baz' => 'Baz', 'nested' => { 'one' => 'One', 'two' => 'Two' } }, 'three' => 'Three' } end let(:expected_content) do { 'foo.bar' => 'Bar', 'foo.baz' => 'Baz', 'foo.nested.one' => 'One', 'foo.nested.two' => 'Two', 'three' => 'Three' } end it { expect(flattenized_content).to eql expected_content } end end
Version data entries
11 entries across 11 versions & 1 rubygems