Sha256: 769e988954f8e2f4c7e20122fe4524cbce6e16bcc7826f880638c2264d98654e

Contents?: true

Size: 736 Bytes

Versions: 4

Compression:

Stored size: 736 Bytes

Contents

# coding: utf-8

require 'test/unit/helper'

class ThinReports::TestReport < MiniTest::Unit::TestCase
  include ThinReports::TestHelpers
  
  # Alias
  Report = ThinReports::Report
  
  def test_new_should_delegate_to_Base_new
    flexmock(Report::Base).should_receive(:new).once
    Report.new
  end
  
  def test_create_should_delegate_to_Base_create
    flexmock(Report::Base).should_receive(:create).once
    Report.create
  end
  
  def test_generate_should_delegate_to_Base_generate
    flexmock(Report::Base).should_receive(:generate).once
    Report.generate
  end
  
  def test_generate_file_should_delegate_to_Base_generate_file
    flexmock(Report::Base).should_receive(:generate_file).once
    Report.generate_file
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.7.7 test/unit/test_report.rb
thinreports-0.7.6 test/unit/test_report.rb
thinreports-0.7.5 test/unit/test_report.rb
thinreports-0.7.0 test/unit/test_report.rb