diff --git a/lib/syntax_tree/formatter.rb b/lib/syntax_tree/formatter.rb index 60858bf2..2b229885 100644 --- a/lib/syntax_tree/formatter.rb +++ b/lib/syntax_tree/formatter.rb @@ -60,7 +60,7 @@ def initialize( # constant. That constant is responsible for determining the default # disable ternary value. If it's defined, then we default to true. # Otherwise we default to false. - defined?(DISABLE_TERNARY) + defined?(DISABLE_AUTO_TERNARY) else disable_auto_ternary end diff --git a/lib/syntax_tree/plugin/disable_ternary.rb b/lib/syntax_tree/plugin/disable_auto_ternary.rb similarity index 70% rename from lib/syntax_tree/plugin/disable_ternary.rb rename to lib/syntax_tree/plugin/disable_auto_ternary.rb index 0cb48d84..dd38c783 100644 --- a/lib/syntax_tree/plugin/disable_ternary.rb +++ b/lib/syntax_tree/plugin/disable_auto_ternary.rb @@ -2,6 +2,6 @@ module SyntaxTree class Formatter - DISABLE_TERNARY = true + DISABLE_AUTO_TERNARY = true end end diff --git a/test/plugin/disable_ternary_test.rb b/test/plugin/disable_auto_ternary_test.rb similarity index 100% rename from test/plugin/disable_ternary_test.rb rename to test/plugin/disable_auto_ternary_test.rb