Sha256: e5ba884dd84b5865925ed52e68342dc3aa5b7e6c403d9216a810b754e98b8d31
Contents?: true
Size: 893 Bytes
Versions: 4
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class Thinreports::Generator::PDF::TestGraphics < Minitest::Test include Thinreports::TestHelper class TestGraphics attr_accessor :pdf include Thinreports::Generator::PDF::Graphics end def setup @g = TestGraphics.new @g.pdf = mock('pdf') end def test_setup_custom_graphic_states @g.pdf.expects(:line_width). with(TestGraphics::BASE_LINE_WIDTH).once @g.send(:setup_custom_graphic_states) end def test_line_width @g.pdf. expects(:line_width). with(10 * TestGraphics::BASE_LINE_WIDTH).once @g.send(:line_width, 10) end def test_save_graphics_state @g.pdf.expects(:save_graphics_state).once @g.send(:save_graphics_state) end def test_restore_graphics_state @g.pdf.expects(:restore_graphics_state).once @g.send(:restore_graphics_state) end end
Version data entries
4 entries across 4 versions & 1 rubygems