anbt-sql-formatter 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/test/test_helper.rb CHANGED
@@ -1,5 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  require File.join(File.expand_path(File.dirname(__FILE__)), "helper")
4
2
 
5
3
  require "anbt-sql-formatter/helper"
@@ -1,5 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  require File.join(File.expand_path(File.dirname(__FILE__)), "helper")
4
2
 
5
3
  require "anbt-sql-formatter/formatter"
@@ -49,7 +47,7 @@ SELECT
49
47
  )
50
48
  EOS
51
49
 
52
- assert_equals(msg, expected.strip, @fmt.format(sql))
50
+ assert_equals(msg, expected.strip, @fmt.format(sql))
53
51
  end
54
52
 
55
53
  def test_format_num_in_values
@@ -78,7 +76,7 @@ SELECT
78
76
  )
79
77
  EOS
80
78
 
81
- assert_equals(msg, expected.strip, @fmt.format(sql))
79
+ assert_equals(msg, expected.strip, @fmt.format(sql))
82
80
  end
83
81
 
84
82
  def test_format_str_in_values
@@ -107,7 +105,7 @@ SELECT
107
105
  )
108
106
  EOS
109
107
 
110
- assert_equals(msg, expected.strip, @fmt.format(sql))
108
+ assert_equals(msg, expected.strip, @fmt.format(sql))
111
109
  end
112
110
 
113
111
  def test_format_oneline_in_values
@@ -127,7 +125,7 @@ SELECT
127
125
  )
128
126
  EOS
129
127
 
130
- assert_equals(msg, expected.strip, @fmt.format(sql))
128
+ assert_equals(msg, expected.strip, @fmt.format(sql))
131
129
  end
132
130
 
133
131
  def test_format_with_space_after_comma
@@ -157,7 +155,7 @@ SELECT
157
155
  )
158
156
  EOS
159
157
 
160
- assert_equals(msg, expected.strip, @fmt.format(sql))
158
+ assert_equals(msg, expected.strip, @fmt.format(sql))
161
159
  end
162
160
 
163
161
  def test_format_ignore_in_values_compact_when_select
@@ -180,7 +178,7 @@ SELECT
180
178
  )
181
179
  EOS
182
180
 
183
- assert_equals(msg, expected.strip, @fmt.format(sql))
181
+ assert_equals(msg, expected.strip, @fmt.format(sql))
184
182
  end
185
183
 
186
184
  private