| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
require File.expand_path(File.dirname(__FILE__)) + "/../test_helper" |
| 8 |
require File.expand_path(File.dirname(__FILE__)) + '/../../lib/cmock_file_writer' |
| 9 |
|
| 10 |
describe CMockFileWriter, "Verify CMockFileWriter Module" do |
| 11 |
|
| 12 |
before do |
| 13 |
create_mocks :config |
| 14 |
@cmock_file_writer = CMockFileWriter.new(@config) |
| 15 |
end |
| 16 |
|
| 17 |
after do |
| 18 |
end |
| 19 |
|
| 20 |
it "complain if a block was not specified when calling create" do |
| 21 |
begin |
| 22 |
@cmock_file_writer.create_file("test.txt") |
| 23 |
assert false, "Should Have Thrown An Error When Calling Without A Block" |
| 24 |
rescue |
| 25 |
end |
| 26 |
end |
| 27 |
end |