diff options
Diffstat (limited to 'spec/shapes/path_spec.rb')
| -rw-r--r-- | spec/shapes/path_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/shapes/path_spec.rb b/spec/shapes/path_spec.rb new file mode 100644 index 0000000..377ec77 --- /dev/null +++ b/spec/shapes/path_spec.rb @@ -0,0 +1,10 @@ +describe Scale::Path do + it 'moves' do + subject.move_to(x: 10, y: 10) + expected = <<-XML +<?xml version="1.0"?> +<path d="M10 10"/> + XML + expect(subject.to_xml).to eql(expected) + end +end |
