Sha256: 265b4c7af2dc80f8f53b4f4d716d5db336dbfcad938442243e8d43d70cc1daea
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
require 'spec_helper' require 'diagram' describe Architect::Diagram do before(:each) do @diagram = Architect::Diagram.new end it "can draw a class" do @diagram.send("draw", "[User]", "class.png") end it "can draw an association" do @diagram.send("draw", "[User]-[Pet]", "association.png") end it "can draw a class with attributes and methods" do @diagram.send("draw", "[User|name; age; height|login(); logout()]-[Pet]", "record.png") end it "can draw a diagram with composition" do @diagram.send("draw", "[Pond]<>0..1-0..*[Duck]", "composition.png") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uml_architect-0.0.2 | spec/lib/diagram_spec.rb |