main
1describe Scale::Circle do
2 it { expect(subject.xml_tag).to eql(:circle) }
3
4 describe "#attributes" do
5 it "includes the radius" do
6 subject.r = 10
7 expect(subject.attributes).to include(r: 10)
8 end
9
10 it "includes the x position of the center of the circle" do
11 subject.cx = 10
12 expect(subject.attributes).to include(cx: 10)
13 end
14
15 it "includes the y position of the center of the circle" do
16 subject.cy = 10
17 expect(subject.attributes).to include(cy: 10)
18 end
19 end
20end