Sha256: 88cf580634a0907f12b8068f1deefe7e90a14b0111d55da6d413f3827347b9d6

Contents?: true

Size: 852 Bytes

Versions: 7

Compression:

Stored size: 852 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 File.expand_path(File.dirname(__FILE__)) + '/../../lib/cmock_file_writer'

describe CMockFileWriter, "Verify CMockFileWriter Module" do

  before do
    create_mocks :config
    @cmock_file_writer = CMockFileWriter.new(@config)
  end

  after do
  end

  it "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

7 entries across 7 versions & 1 rubygems

Version Path
ceedling-0.31.1 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.31.0 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.30.0 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.28.3 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.28.2 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.28.1 vendor/cmock/test/unit/cmock_file_writer_test.rb
ceedling-0.27.0 vendor/cmock/test/unit/cmock_file_writer_test.rb