Skip to content

Commit

Permalink
Merge pull request #209 from voormedia/deprecation-of-file-exists
Browse files Browse the repository at this point in the history
Fix deprecation of File.exists?
  • Loading branch information
rolftimmermans committed Jun 13, 2016
2 parents b198f67 + d704c16 commit ee63a13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@ Rails ERD - Generate Entity-Relationship Diagrams for Rails applications

The second goal of Rails ERD is to provide you with a tool to inspect your application's domain model. If you don't like the default output, it is very easy to use the API to build your own diagrams.

Rails ERD was created specifically for Rails and works on versions 3.0-4.2. It uses Active Record's built-in reflection capabilities to figure out how your models are associated.
Rails ERD was created specifically for Rails and works on versions 3.0-5.0. It uses Active Record's built-in reflection capabilities to figure out how your models are associated.


Preview
Expand Down
2 changes: 1 addition & 1 deletion test/unit/graphviz_test.rb
Expand Up @@ -139,7 +139,7 @@ def output_and_errors_from_command(*args); raise end

test "create should not create output if there are no connected models" do
Diagram::Graphviz.create rescue nil
assert !File.exists?("erd.png")
assert !File.exist?("erd.png")
end

test "create should abort and complain if there are no connected models" do
Expand Down
2 changes: 1 addition & 1 deletion test/unit/rake_task_test.rb
Expand Up @@ -40,7 +40,7 @@ def teardown

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
Expand Down

0 comments on commit ee63a13

Please sign in to comment.