spec/unit/models/to_manifest_spec.rb in gooddata-0.6.51 vs spec/unit/models/to_manifest_spec.rb in gooddata-0.6.52
- old
+ new
@@ -73,11 +73,15 @@
d.add_date('opportunity_comitted', dataset: 'committed_on', format: 'yyyy/MM/dd')
d.add_column(type: :date_fact, id: 'dt.date_fact')
end
end
- expect(blueprint.to_manifest.first['dataSetSLIManifest']['parts']).to include("referenceKey" => 1, "populates" => ["repo_label_1"], "mode" => "FULL", "columnName" => "repo_label_1")
+ expect(blueprint.to_manifest.first['dataSetSLIManifest']['parts'])
+ .to include("referenceKey" => 1,
+ "populates" => ["repo_label_1"],
+ "mode" => "FULL",
+ "columnName" => "repo_label_1")
blueprint = GoodData::Model::ProjectBlueprint.build("my_bp") do |p|
p.add_date_dimension("committed_on")
p.add_dataset("repos") do |d|
@@ -95,10 +99,14 @@
d.add_fact('lines')
d.add_reference('repos')
end
end
- expect(blueprint.to_manifest.first['dataSetSLIManifest']['parts']).to include("referenceKey" => 1, "populates" => ["repo_label_2"], "mode" => "FULL", "columnName" => "repo_label_2")
+ expect(blueprint.to_manifest.first['dataSetSLIManifest']['parts'])
+ .to include("referenceKey" => 1,
+ "populates" => ["repo_label_2"],
+ "mode" => "FULL",
+ "columnName" => "repo_label_2")
expect(blueprint.to_manifest[1]['dataSetSLIManifest']['parts']).to include("populates" => ["repo_label_2"], "mode" => "FULL", "columnName" => "repos", "referenceKey" => 1)
end
it 'blueprint cannot have more than one reference key.' do
blueprint = GoodData::Model::ProjectBlueprint.build("my_bp") do |p|