test/unit/graphviz_test.rb in rails-erd-1.4.6 vs test/unit/graphviz_test.rb in rails-erd-1.4.7

- old
+ new

@@ -57,17 +57,17 @@ ensure FileUtils.rm "erd.svg" rescue nil end end - test "rank direction should be lr for horizontal orientation" do + test "rank direction should be tb for horizontal orientation" do create_simple_domain - assert_equal '"LR"', diagram(:orientation => :horizontal).graph[:rankdir].to_s + assert_equal '"TB"', diagram(:orientation => "horizontal").graph[:rankdir].to_s end - test "rank direction should be tb for vertical orientation" do + test "rank direction should be lr for vertical orientation" do create_simple_domain - assert_equal '"TB"', diagram(:orientation => :vertical).graph[:rankdir].to_s + assert_equal '"LR"', diagram(:orientation => "vertical").graph[:rankdir].to_s end # Diagram generation ======================================================= test "create should create output for domain with attributes" do create_model "Foo", :bar => :references, :column => :string do