test/unit/rake_task_test.rb in rails-erd-1.4.7 vs test/unit/rake_task_test.rb in rails-erd-1.5.0
- old
+ new
@@ -38,10 +38,10 @@
Rake::Task["erd:generate"].execute
end
test "generate task should not create output if there are no connected models" do
Rake::Task["erd:generate"].execute rescue nil
- assert !File.exists?("erd.dot")
+ assert !File.exist?("erd.dot")
end
test "generate task should eager load application environment" do
eager_loaded, environment_loaded = nil
create_app