- Timestamp:
- 09/10/08 14:55:56 (2 months ago)
- Location:
- lang/ruby/ymldot
- Files:
-
- 1 added
- 2 modified
-
lib/ymldot.rb (modified) (1 diff)
-
spec/test_columns_none.yml (added)
-
spec/ymldot_spec.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ymldot/lib/ymldot.rb
r19115 r19118 92 92 93 93 def eval_entity(table) 94 columns = table["columns"] 94 columns = table["columns"]; columns ||= [] 95 95 @entities[table["name"]] ||= Entity.new(table["name"], table["dependent"], columns) 96 96 end -
lang/ruby/ymldot/spec/ymldot_spec.rb
r19115 r19118 163 163 end 164 164 end 165 166 describe Ymldot, "で読み込んだ.ymlにてカラムが無くforeingkeyのみのEntityがあった場合" do 167 before do 168 @ymldot = Ymldot.new("test_columns_none.yml") 169 end 170 171 it "#entities['foo'].columnsは空の配列であること" do 172 puts @ymldot.node.inspect 173 @ymldot.entities["foo"].columns.should == [] 174 @ymldot.entities["hoge"].columns.should be_empty 175 end 176 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)