Sha256: aed23d0fd094db0de79ba0e6c1ab0329e565160fe71df222eb815b6f1a28744b
Contents?: true
Size: 603 Bytes
Versions: 4
Compression:
Stored size: 603 Bytes
Contents
require "test_helper" require "rorschart/pivot_data" module Rorschart class TestPivotData < Minitest::Unit::TestCase def test_flatten_data # Given data = [ {:a => 1, :b => 2}, {:a => 2, :b => 3}, {:b => 2, :c => 4} ] # When pivot_data = PivotData.new(nil) flat = pivot_data.send(:flatten_array_hash, data) # flat = flatten_array_hash(data) # Then excepted = {:a => 2, :b => 2, :c => 4} assert_equal excepted, flat end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rorschart-0.10.2 | test/pivot_data_test.rb |
rorschart-0.10.3 | test/pivot_data_test.rb |
rorschart-0.10.1 | test/pivot_data_test.rb |
rorschart-0.10.0 | test/pivot_data_test.rb |