spec/rubocop/cop/rspec/repeated_example_spec.rb in rubocop-rspec-1.10.0 vs spec/rubocop/cop/rspec/repeated_example_spec.rb in rubocop-rspec-1.11.0

- old
+ new

@@ -45,9 +45,18 @@ end end RUBY end + it 'does not flag examples when different its arguments are used' do + expect_no_violations(<<-RUBY) + describe 'doing x' do + its(:x) { is_expected.to be_present } + its(:y) { is_expected.to be_present } + end + RUBY + end + it 'does not flag repeated examples in different scopes' do expect_no_violations(<<-RUBY) describe 'doing x' do it "does x" do expect(foo).to be(bar)