Sha256: 19bf82d2d3199e2795283383a7ad9998084a694b9186b3f7ed18fd07cd231cdd
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
# encoding: UTF-8 require 'pry' require 'gooddata/models/model' describe GoodData::Model::SchemaBuilder do it "should create a schema" do # pending("Using of humanize") 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.4 | spec/unit/models/schema_builder_spec.rb |
gooddata-0.6.3 | spec/unit/models/schema_builder_spec.rb |
gooddata-0.6.2 | spec/unit/models/schema_builder_spec.rb |