main
1describe Scale::Text do
2 subject { Scale::Text.new("Hello World!") }
3
4 describe "#to_xml" do
5 it 'generates the proper xml' do
6 subject.x = 10
7 subject.y = 10
8 expected = <<-XML
9<?xml version=\"1.0\"?>
10<text x="10" y="10">Hello World!</text>
11 XML
12 expect(subject.to_xml).to eql(expected)
13 end
14 end
15end