Skip to content

Commit 4b822db

Browse files
Autocorrect for %w[]
1 parent 40b8649 commit 4b822db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/symbol_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
it { is_expected.to all be_a SymEngine::Symbol }
2020
its(:count) { is_expected.to eq 2 }
2121
it 'should have right names' do
22-
expect(symbols.map(&:to_s)).to eq %w(x y)
22+
expect(symbols.map(&:to_s)).to eq %w[x y]
2323
end
2424
end
2525

@@ -36,13 +36,13 @@
3636
end
3737

3838
context 'with an array of Ruby Strings as an argument' do
39-
let(:args) { [%w(x y)] } # it would be one Array argument on *args
39+
let(:args) { [%w[x y]] } # it would be one Array argument on *args
4040

4141
it_behaves_like 'two symbols'
4242
end
4343

4444
context 'with a splatted argument' do
45-
let(:args) { %w(x y) } # it would be several separate strings on *args
45+
let(:args) { %w[x y] } # it would be several separate strings on *args
4646

4747
it_behaves_like 'two symbols'
4848
end

0 commit comments

Comments
 (0)