spec/rubocop/rspec/language/selector_set_spec.rb in rubocop-rspec-1.15.0 vs spec/rubocop/rspec/language/selector_set_spec.rb in rubocop-rspec-1.15.1
- old
+ new
@@ -1,15 +1,15 @@
RSpec.describe RuboCop::RSpec::Language::SelectorSet do
- subject(:selector_set) { described_class.new(%i(foo bar)) }
+ subject(:selector_set) { described_class.new(%i[foo bar]) }
it 'composes sets' do
- combined = selector_set + described_class.new(%i(baz))
+ combined = selector_set + described_class.new(%i[baz])
- expect(combined).to eq(described_class.new(%i(foo bar baz)))
+ expect(combined).to eq(described_class.new(%i[foo bar baz]))
end
it 'compares by value' do
- expect(selector_set).not_to eq(described_class.new(%i(foo bar baz)))
+ expect(selector_set).not_to eq(described_class.new(%i[foo bar baz]))
end
context '#include?' do
it 'returns false for selectors not in the set' do
expect(selector_set.include?(:baz)).to be(false)