ec75afeb416448d92dd0f0fba9f584384592ee0a
[erd-marker.git] / spec / erd_handler / erd_spec.rb
1 require 'spec_helper'
2
3 module Erd
4 describe Erd do
5 let(:input) { double('input').as_null_object }
6 let(:output) { double('output').as_null_object }
7 let(:erd) { Erd.new(input, output) }
8
9 describe "#read" do
10 it "reads a single box" do
11 doc = Document.new File.new("spec/fixtures/single_box_erd.xml")
12 erd = Erd.new doc
13 erd.mark.should == 6.5
14 erd.boxes.length.should == 1
15
16 end
17 end # #read
18 end
19 end