Skip to content

Commit 1e2b3ab

Browse files
committed
Style/BlockDelimiters
1 parent 9d9d02d commit 1e2b3ab

File tree

5 files changed

+96
-110
lines changed

5 files changed

+96
-110
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,6 @@ Naming/HeredocDelimiterNaming:
5151
Exclude:
5252
- 'tasks/compile.rake'
5353

54-
# Offense count: 48
55-
# Cop supports --auto-correct.
56-
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
57-
# SupportedStyles: line_count_based, semantic, braces_for_chaining
58-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
59-
# FunctionalMethods: let, let!, subject, watch
60-
# IgnoredMethods: lambda, proc, it
61-
Style/BlockDelimiters:
62-
Exclude:
63-
- 'spec/em/em_spec.rb'
64-
- 'spec/mysql2/client_spec.rb'
65-
- 'spec/mysql2/result_spec.rb'
66-
- 'spec/mysql2/statement_spec.rb'
67-
6854
# Offense count: 10
6955
Style/Documentation:
7056
Exclude:

spec/em/em_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
end
5151

5252
it "should not swallow exceptions raised in callbacks" do
53-
expect {
53+
expect do
5454
EM.run do
5555
client = Mysql2::EM::Client.new DatabaseCredentials['root']
5656
defer = client.query "SELECT sleep(0.1) as first_query"
@@ -64,7 +64,7 @@
6464
EM.stop_event_loop
6565
end
6666
end
67-
}.to raise_error('some error')
67+
end.to raise_error('some error')
6868
end
6969

7070
context 'when an exception is raised by the client' do
@@ -124,9 +124,9 @@
124124
end
125125
EM.add_timer(0.1) do
126126
expect(callbacks_run).to eq([:callback])
127-
expect {
127+
expect do
128128
client.close
129-
}.not_to raise_error
129+
end.not_to raise_error
130130
EM.stop_event_loop
131131
end
132132
end

0 commit comments

Comments
 (0)