This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.
assert_no_file(relative)
Asserts a given file does not exist. You need to supply an absolute path or a path relative to the configured destination:
assert_no_file "config/random.rb"
# File railties/lib/rails/generators/test_case.rb, line 111 def assert_no_file(relative) absolute = File.expand_path(relative, destination_root) assert !File.exists?(absolute), "Expected file #{relative.inspect} to not exist, but does" end