Sha256: ec7f7526a2fc5e2fc0925784c085b8c84890fceb4d54f7566c275f9aa0e4f25d
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
require 'gooddata/model' require 'pry' describe GoodData::Model::SchemaBuilder do it "should create a schema" do builder = GoodData::Model::SchemaBuilder.new("a_title") schema = builder.to_schema schema.title.should == "A title" schema.name.should == "a_title" end it "should create a schema with some columns" do builder = GoodData::Model::SchemaBuilder.new("payments") builder.add_attribute("id", :title => "My Id") builder.add_fact("amount", :title => "Amount") schema = builder.to_schema schema.attributes.count == 1 schema.attributes.first.title.should == "My Id" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.0.pre10 | spec/model_dsl_spec.rb |