Skip to content

Commit

Permalink
Better messages for assert_file_created. Single project option on clo…
Browse files Browse the repository at this point in the history
…bber rake task

git-svn-id: http://mkrf.rubyforge.org/svn/trunk@23 6e48df83-f314-0410-b1e7-e69642b30866
  • Loading branch information
kevinclark committed Aug 17, 2006
1 parent 4fd0c85 commit 4d5ccf0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 263 deletions.
4 changes: 2 additions & 2 deletions test/abstract_unit.rb
Expand Up @@ -36,9 +36,9 @@ def silence_stream(stream)
protected

def assert_creates_file(file)
assert !File.exist?(file)
assert !File.exist?(file), "#{file} already exists!"
yield
assert File.exist?(file)
assert File.exist?(file), "#{file} wasn't created!"
end

end
232 changes: 0 additions & 232 deletions test/sample_files/libxml-ruby-0.3.8/ext/xml/mkrf.log

This file was deleted.

22 changes: 0 additions & 22 deletions test/sample_files/syck-0.55/ext/ruby/ext/syck/mkrf.log

This file was deleted.

2 changes: 1 addition & 1 deletion test/test_generator.rb
Expand Up @@ -9,7 +9,7 @@ def write_rakefile(file = "Rakefile")
end

class TestGenerator < Test::Unit::TestCase
def teardown
def setup
FileUtils.rm_f 'mkrf.log'
end

Expand Down

0 comments on commit 4d5ccf0

Please sign in to comment.