Sha256: 964d9029b7e7fd7d00b9206f69600d12da5f2c4b22165fdf4ba0fa7faef83cb7

Contents?: true

Size: 737 Bytes

Versions: 1

Compression:

Stored size: 737 Bytes

Contents

shared_context 'schema_context' do

  def schema_hash
    {
      'cubes' => [cube_hash.deep_dup]
    }
  end

  def cube_hash
    {
      'name' => 'fake_cube',
      'dimensions' => [dimension_hash.deep_dup],
      'measures' => [measure_hash.deep_dup]
    }
  end

  def dimension_hash
    {
      'name' => 'fake_dimension',
      'hierarchies' => [hierarchy_hash.deep_dup]
    }
  end

  def hierarchy_hash
    {
      'name' => 'fake_hierarchy',
      'levels' => [level_hash.deep_dup]
    }
  end

  def level_hash
    {
      'name' => 'fake_level'
    }
  end

  def measure_hash
    {
      'name' => 'fake_measure',
      'column' => 'amount',
      'aggregator' => 'count',
      'format_string' => '$#,###'
    }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubiks-0.0.4 spec/support/schema_context.rb