File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,6 @@ Naming/HeredocDelimiterNaming:
51
51
Exclude :
52
52
- ' tasks/compile.rake'
53
53
54
- # Offense count: 2
55
- # Cop supports --auto-correct.
56
- # Configuration parameters: MaxKeyValuePairs.
57
- Performance/RedundantMerge :
58
- Exclude :
59
- - ' spec/mysql2/client_spec.rb'
60
- - ' spec/mysql2/statement_spec.rb'
61
-
62
54
# Offense count: 3
63
55
# Cop supports --auto-correct.
64
56
# Configuration parameters: AutoCorrect.
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ def run_gc
493
493
end
494
494
495
495
it "should allow changing query options for subsequent queries" do
496
- @client . query_options . merge! ( :something => :else )
496
+ @client . query_options [ :something ] = :else
497
497
result = @client . query "SELECT 1"
498
498
expect ( @client . query_options [ :something ] ) . to eql ( :else )
499
499
expect ( result . instance_variable_get ( '@query_options' ) [ :something ] ) . to eql ( :else )
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def stmt_count
196
196
end
197
197
198
198
it "should warn but still work if cache_rows is set to false" do
199
- @client . query_options . merge! ( :cache_rows => false )
199
+ @client . query_options [ :cache_rows ] = false
200
200
statement = @client . prepare 'SELECT 1'
201
201
result = nil
202
202
expect { result = statement . execute . to_a } . to output ( /:cache_rows is forced for prepared statements/ ) . to_stderr
You can’t perform that action at this time.
0 commit comments