File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/rubocop/cop/rspec/factory_bot Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ def format_block(node)
193
193
if node . body . begin_type?
194
194
format_multiline_block ( node )
195
195
else
196
- format_singeline_block ( node )
196
+ format_singleline_block ( node )
197
197
end
198
198
end
199
199
@@ -205,7 +205,7 @@ def format_multiline_block(node)
205
205
"#{ indent_end } end"
206
206
end
207
207
208
- def format_singeline_block ( node )
208
+ def format_singleline_block ( node )
209
209
" { #{ node . arguments . source } #{ node . body . source } }"
210
210
end
211
211
end
Original file line number Diff line number Diff line change 6
6
let ( :config ) do
7
7
{
8
8
'AllCops' => {
9
- 'Setting' => 'fourty two'
9
+ 'Setting' => 'forty two'
10
10
} ,
11
11
'RSpec/Foo' => {
12
12
'Config' => 2 ,
42
42
expect ( formatter . dump ) . to eql ( <<-YAML . gsub ( /^\s +\| / , '' ) )
43
43
|---
44
44
|AllCops:
45
- | Setting: fourty two
45
+ | Setting: forty two
46
46
|
47
47
|RSpec/Foo:
48
48
| Config: 2
You can’t perform that action at this time.
0 commit comments