Sha256: ca021cbfb215b8c2cc5cac9d3390664ed39a6eaa683ab947b729e190db9e0e5f

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

require 'test_helper'

describe DragonflySvg::Processors::RemoveNamespaces do
  let(:app) { test_app.configure_with(:svg) }
  let(:content) { Dragonfly::Content.new(app, SAMPLES_DIR.join('sample.svg')) }
  let(:processor) { DragonflySvg::Processors::RemoveNamespaces.new }

  before { processor.call(content) }

  it { content.data.wont_include 'xmlns=' }

  describe 'tempfile has extension' do
    it { content.tempfile.path.must_match /\.svg\z/ }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dragonfly_svg-1.0.1 test/dragonfly_svg/processors/remove_namespaces_test.rb
dragonfly_svg-1.0.0 test/dragonfly_svg/processors/remove_namespaces_test.rb