spec/rubocop/rspec/language/selector_set_spec.rb in rubocop-rspec-1.25.1 vs spec/rubocop/rspec/language/selector_set_spec.rb in rubocop-rspec-1.26.0
- old
+ new
@@ -33,17 +33,19 @@
end
end
describe '#send_pattern' do
it 'builds a send matching pattern' do
- expect(selector_set.send_pattern).to eql('(send _ {:foo :bar} ...)')
+ expect(selector_set.send_pattern).to eql(
+ '(send {(const nil? :RSpec) nil?} {:foo :bar} ...)'
+ )
end
end
describe '#block_pattern' do
it 'builds a block matching pattern' do
expect(selector_set.block_pattern).to eql(
- '(block (send _ {:foo :bar} ...) ...)'
+ '(block (send {(const nil? :RSpec) nil?} {:foo :bar} ...) ...)'
)
end
end
end