Sha256: 7eb548e3163acbeb2b3d31f0dd9c5f6741cb022ce109656cf247410a7c977f04
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
require 'test_helper' describe DragonflySvg::Processors::SetDimensions do let(:app) { test_app.configure_with(:svg) } let(:content) { Dragonfly::Content.new(app, SAMPLES_DIR.join('sample.svg')) } let(:processor) { DragonflySvg::Processors::SetDimensions.new } let(:analyser) { DragonflySvg::Analysers::SvgProperties.new } before { processor.call(content, 400, 600) } it { analyser.call(content)['width'].must_equal 400 } it { analyser.call(content)['height'].must_equal 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_dimensions_test.rb |
dragonfly_svg-1.0.0 | test/dragonfly_svg/processors/set_dimensions_test.rb |