spec/unit/models/model_spec.rb in gooddata-0.6.16 vs spec/unit/models/model_spec.rb in gooddata-0.6.17

- old
+ new

@@ -14,11 +14,11 @@ :title => "x", :datasets => [ { :name => "commits", :columns => [ - {:type => "fact", :name => "lines_changed"} + {:type => "fact", :name => "lines_changed", :description=>"Fact description"} ] } ]}) @conflicting_blueprint = GoodData::Model::ProjectBlueprint.new( @@ -47,10 +47,10 @@ additional_blueprint = @blueprint_with_duplicate.find_dataset("commits").to_hash stuff = GoodData::Model.merge_dataset_columns(first_dataset, additional_blueprint) stuff[:columns].count.should == 4 - stuff[:columns].include?({:type => "fact", :name => "lines_changed"}).should == true + stuff[:columns].include?({:type => "fact", :name => "lines_changed", :description=>"Fact description"}).should == true stuff[:columns].group_by { |col| col[:name] }["lines_changed"].count.should == 1 end it "should pass when merging 2 columns with the same name if all attributes are identical" do first_dataset = @base_blueprint.find_dataset("commits").to_hash \ No newline at end of file