Sha256: 59832ce77611d17c6c46058ca87720493db2081ddafe02b25cae14deb7706ab2
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
require 'test_helper' describe DragonflySvg::Processors::SetNamespace do let(:app) { test_app.configure_with(:svg) } let(:content) { Dragonfly::Content.new(app, SAMPLES_DIR.join('sample.svg')) } let(:processor) { DragonflySvg::Processors::SetNamespace.new } describe 'by default' do before { processor.call(content) } it { content.data.must_include 'http://www.w3.org/2000/svg' } end describe 'custom namespace' do before { processor.call(content, 'custom_namespace') } it { content.data.must_include 'custom_namespace' } end describe 'tempfile has extension' do before { processor.call(content) } 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/set_namespace_test.rb |
dragonfly_svg-1.0.0 | test/dragonfly_svg/processors/set_namespace_test.rb |