@@ -26,7 +26,7 @@ def change
26
26
end
27
27
28
28
shared_examples 'no offense' do
29
- it 'does not register an offensewhen including combinable transformations' do
29
+ it 'does not register an offense when including combinable transformations' do
30
30
expect_no_offenses ( <<~RUBY )
31
31
def change
32
32
change_table :users do |t|
@@ -37,7 +37,7 @@ def change
37
37
RUBY
38
38
end
39
39
40
- it 'does not register an offensewhen including combinable alter methods' do
40
+ it 'does not register an offense when including combinable alter methods' do
41
41
expect_no_offenses ( <<~RUBY )
42
42
def change
43
43
add_column :users, :name, :string, null: false
@@ -72,7 +72,7 @@ def change
72
72
end
73
73
74
74
shared_examples 'no offense for mysql' do
75
- it 'does not register an offensewhen including combinable transformations' do
75
+ it 'does not register an offense when including combinable transformations' do
76
76
expect_no_offenses ( <<~RUBY )
77
77
def change
78
78
change_table :users do |t|
@@ -83,7 +83,7 @@ def change
83
83
RUBY
84
84
end
85
85
86
- it 'does not register an offensewhen including combinable alter methods' do
86
+ it 'does not register an offense when including combinable alter methods' do
87
87
expect_no_offenses ( <<~RUBY )
88
88
def change
89
89
remove_index :users, :name
@@ -127,7 +127,7 @@ def change
127
127
end
128
128
129
129
shared_examples 'no offense for postgresql' do
130
- it 'does not register an offensewhen including combinable transformations' do
130
+ it 'does not register an offense when including combinable transformations' do
131
131
expect_no_offenses ( <<~RUBY )
132
132
def change
133
133
change_table :users do |t|
@@ -138,7 +138,7 @@ def change
138
138
RUBY
139
139
end
140
140
141
- it 'does not register an offensewhen including combinable alter methods' do
141
+ it 'does not register an offense when including combinable alter methods' do
142
142
expect_no_offenses ( <<~RUBY )
143
143
def change
144
144
change_column_default :users, :name, false
@@ -193,7 +193,7 @@ def change
193
193
RUBY
194
194
end
195
195
196
- it 'does not register an offensewhen including combinable transformations with `bulk: true`' do
196
+ it 'does not register an offense when including combinable transformations with `bulk: true`' do
197
197
expect_no_offenses ( <<~RUBY )
198
198
def change
199
199
change_table :users, bulk: true do |t|
@@ -204,7 +204,7 @@ def change
204
204
RUBY
205
205
end
206
206
207
- it 'does not register an offensewhen including combinable transformations with `bulk: false`' do
207
+ it 'does not register an offense when including combinable transformations with `bulk: false`' do
208
208
expect_no_offenses ( <<~RUBY )
209
209
def change
210
210
change_table :users, bulk: false do |t|
@@ -215,7 +215,7 @@ def change
215
215
RUBY
216
216
end
217
217
218
- it 'does not register an offensewhen including a combinable transformation' do
218
+ it 'does not register an offense when including a combinable transformation' do
219
219
expect_no_offenses ( <<~RUBY )
220
220
def change
221
221
change_table :users do |t|
@@ -252,7 +252,7 @@ def change
252
252
RUBY
253
253
end
254
254
255
- it 'does not register an offensewhen including transformations with block' do
255
+ it 'does not register an offense when including transformations with block' do
256
256
expect_no_offenses ( <<~RUBY )
257
257
def change
258
258
reversible do |dir|
@@ -272,7 +272,7 @@ def change
272
272
RUBY
273
273
end
274
274
275
- it 'does not register an offensewhen the target of the alter method is another table' do
275
+ it 'does not register an offense when the target of the alter method is another table' do
276
276
expect_no_offenses ( <<~RUBY )
277
277
def change
278
278
add_reference :users, :team
@@ -282,7 +282,7 @@ def change
282
282
RUBY
283
283
end
284
284
285
- it 'does not register an offensewhen including non-combinable alter method between' do
285
+ it 'does not register an offense when including non-combinable alter method between' do
286
286
expect_no_offenses ( <<~RUBY )
287
287
def change
288
288
add_column :users, :name, :string, null: false
@@ -304,7 +304,7 @@ def change
304
304
RUBY
305
305
end
306
306
307
- it 'does not register an offensewhen including a combinable alter method' do
307
+ it 'does not register an offense when including a combinable alter method' do
308
308
expect_no_offenses ( <<~RUBY )
309
309
def change
310
310
add_reference :users, :team
0 commit comments