Sha256: f97463d043b26e55fad1f88f7a9b4d98cfc53a33a2bfcdce31c3df2f3961411b

Contents?: true

Size: 928 Bytes

Versions: 14

Compression:

Stored size: 928 Bytes

Contents

# encoding: UTF-8
require 'gooddata'

include GoodData::Model

describe GoodData::Model::ToManifest do

  # before(:each) do
  #   @spec = JSON.parse(File.read("./spec/data/test_project_model_spec.json"), :symbolize_names => true)
  #   @result = JSON.parse(File.read("./spec/data/manifest_test_project.json"))
  # end

  it "should parse the model view and return the blueprint" do
    spec = JSON.parse(File.read("./spec/data/test_project_model_spec.json"), :symbolize_names => true)
    result = JSON.parse(File.read("./spec/data/manifest_test_project.json"))
    expect(ToManifest.to_manifest(spec)).to eq result
  end

  it "should parse the model view and return the blueprint" do
    spec = JSON.parse(File.read("./spec/data/gd_gse_data_blueprint.json"), :symbolize_names => true)
    result = JSON.parse(File.read("./spec/data/gd_gse_data_manifest.json"))
    expect(ToManifest.to_manifest(spec)).to eq result
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gooddata-0.6.18 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.17 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.16 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.15 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.14 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.13 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.12 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.11 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.10 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.9 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.8 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.7 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.6 spec/unit/models/to_manifest_spec.rb
gooddata-0.6.5 spec/unit/models/to_manifest_spec.rb