Sha256: b50a44314636b4a3ce663e436e2e44d5802869f6126f8d16d062f0092f561afe
Contents?: true
Size: 958 Bytes
Versions: 3
Compression:
Stored size: 958 Bytes
Contents
# coding: utf-8 require 'test/unit/helper' class ThinReports::Generator::PDF::TestGraphics < MiniTest::Unit::TestCase include ThinReports::TestHelpers class TestGraphics attr_accessor :pdf include ThinReports::Generator::PDF::Graphics end def setup @g = TestGraphics.new @g.pdf = flexmock('pdf') end def test_setup_custom_graphic_states @g.pdf. should_receive(:line_width). with(TestGraphics::BASE_LINE_WIDTH).once @g.send(:setup_custom_graphic_states) end def test_line_width @g.pdf. should_receive(:line_width). with(10 * TestGraphics::BASE_LINE_WIDTH).once @g.send(:line_width, 10) end def test_save_graphics_state @g.pdf.should_receive(:save_graphics_state).once @g.send(:save_graphics_state) end def test_restore_graphics_state @g.pdf.should_receive(:restore_graphics_state).once @g.send(:restore_graphics_state) end end
Version data entries
3 entries across 3 versions & 1 rubygems