Sha256: 6fc9a9bdc7cafdb95ad9ae68112b5ba2b90ee7809bf6765df23bf6322c9dc183
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
require 'test_helper' describe DragonflySvg::Processors::SetViewBox do let(:app) { test_app.configure_with(:svg) } let(:content) { Dragonfly::Content.new(app, SAMPLES_DIR.join('sample.svg')) } let(:processor) { DragonflySvg::Processors::SetViewBox.new } before { processor.call(content, 0, 0, 400, 600) } it { content.data.must_include '0 0 400 600' } 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/set_view_box_test.rb |
dragonfly_svg-1.0.0 | test/dragonfly_svg/processors/set_view_box_test.rb |