Sha256: 4476b8205e9e3958237661796c2eab28903e1dc12610d3120a988723d7c2197a

Contents?: true

Size: 953 Bytes

Versions: 12

Compression:

Stored size: 953 Bytes

Contents

# ==========================================
#   CMock Project - Automatic Mock Generation for C
#   Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
#   [Released under MIT License. Please refer to license.txt for details]
# ========================================== 

require File.expand_path(File.dirname(__FILE__)) + "/../test_helper"
require 'cmock_file_writer'

class CMockFileWriterTest < Test::Unit::TestCase
  def setup
    create_mocks :config
    @cmock_file_writer = CMockFileWriter.new(@config)
  end

  def teardown
  end
  
  should "have set up internal accessors correctly on init" do
    assert_equal(@config, @cmock_file_writer.config)
  end
  
  should "complain if a block was not specified when calling create" do
    begin
      @cmock_file_writer.create_file("test.txt")
      assert false, "Should Have Thrown An Error When Calling Without A Block"
    rescue
    end
  end  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ceedling-0.17.0 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.16.0 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.15.6 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.15.5 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.15.4 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.15.3 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.15.2 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.15.1 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.15.0 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.13.0 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.0.2 new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.0.1 new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_file_writer_test.rb