Skip to content

Commit 2936cf1

Browse files
committed
RuboCop fix
1 parent 23c7ab6 commit 2936cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/functions/to_json_pretty_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
is_expected.to run.with_params('one' => { 'oneA' => 'A', 'oneB' => { 'oneB1' => '1', 'oneB2' => '2' } }, 'two' => %w[twoA twoB])
1212
.and_return("{\n \"one\": {\n \"oneA\": \"A\",\n \"oneB\": {\n \"oneB1\": \"1\",\n \"oneB2\": \"2\"\n }\n },\n \"two\": [\n \"twoA\",\n \"twoB\"\n ]\n}\n") # rubocop:disable Metrics/LineLength : Unable to reduce line to required length
1313
}
14-
it { is_expected.to run.with_params({'one' => '1', 'two' => nil}, true).and_return("{\n \"one\": \"1\"\n}\n") }
14+
it { is_expected.to run.with_params({ 'one' => '1', 'two' => nil }, true).and_return("{\n \"one\": \"1\"\n}\n") }
1515
it { is_expected.to run.with_params(['one', 'two', nil, 'three'], true).and_return("[\n \"one\",\n \"two\",\n \"three\"\n]\n") }
1616
end

0 commit comments

Comments
 (0)