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