spec/model_dsl_spec.rb in gooddata-0.6.0.pre6 vs spec/model_dsl_spec.rb in gooddata-0.6.0.pre7
- old
+ new
@@ -4,10 +4,11 @@
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.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")
\ No newline at end of file