@@ -170,7 +170,7 @@ class Comment < ActiveRecord::Base; end
170
170
it 'runs pt-online-schema-change with the specified arguments' do
171
171
expect ( Departure ::Command )
172
172
. to receive ( :new )
173
- . with ( /--chunk-time=1/ , anything , anything )
173
+ . with ( /--chunk-time=1/ , anything , anything , anything )
174
174
. and_return ( command )
175
175
176
176
ClimateControl . modify PERCONA_ARGS : '--chunk-time=1' do
@@ -183,7 +183,7 @@ class Comment < ActiveRecord::Base; end
183
183
it 'runs pt-online-schema-change with the specified arguments' do
184
184
expect ( Departure ::Command )
185
185
. to receive ( :new )
186
- . with ( /--chunk-time=1 --max-lag=2/ , anything , anything )
186
+ . with ( /--chunk-time=1 --max-lag=2/ , anything , anything , anything )
187
187
. and_return ( command )
188
188
189
189
ClimateControl . modify PERCONA_ARGS : '--chunk-time=1 --max-lag=2' do
@@ -196,7 +196,7 @@ class Comment < ActiveRecord::Base; end
196
196
it 'runs pt-online-schema-change with the user specified value' do
197
197
expect ( Departure ::Command )
198
198
. to receive ( :new )
199
- . with ( /--alter-foreign-keys-method=drop_swap/ , anything , anything )
199
+ . with ( /--alter-foreign-keys-method=drop_swap/ , anything , anything , anything )
200
200
. and_return ( command )
201
201
202
202
ClimateControl . modify PERCONA_ARGS : '--alter-foreign-keys-method=drop_swap' do
0 commit comments