spec/unit/models/schema_builder_spec.rb in gooddata-0.6.4 vs spec/unit/models/schema_builder_spec.rb in gooddata-0.6.5
- old
+ new
@@ -7,21 +7,20 @@
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"
+ blueprint = builder.to_blueprint
+ blueprint.title.should == "A Title"
+ blueprint.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"
+ blueprint = builder.to_blueprint
+ blueprint.attributes.count == 1
end
end
\ No newline at end of file