diff --git a/lib/initials/svg.rb b/lib/initials/svg.rb index b3a340d..3707e26 100644 --- a/lib/initials/svg.rb +++ b/lib/initials/svg.rb @@ -21,7 +21,7 @@ def name def to_s svg = [ - "", + "", shape == :rect ? "" : diff --git a/spec/svg_spec.rb b/spec/svg_spec.rb index 8a6172c..d2421b7 100644 --- a/spec/svg_spec.rb +++ b/spec/svg_spec.rb @@ -83,6 +83,12 @@ end end + describe "svg tag" do + it "has valid xmlns attribute" do + expect(subject.to_s).to match(/^/) + end + end + describe "size" do let(:options) { {size: 512} }