spec/rubocop/cop/rspec/verified_doubles_spec.rb in rubocop-rspec-1.12.0 vs spec/rubocop/cop/rspec/verified_doubles_spec.rb in rubocop-rspec-1.13.0

- old
+ new

@@ -1,6 +1,6 @@ -describe RuboCop::Cop::RSpec::VerifiedDoubles, :config do +RSpec.describe RuboCop::Cop::RSpec::VerifiedDoubles, :config do subject(:cop) { described_class.new(config) } it 'finds a `double` instead of an `instance_double`' do expect_violation(<<-RUBY) it do @@ -9,10 +9,10 @@ end RUBY end context 'when configuration does not specify IgnoreSymbolicNames' do - let(:cop_config) { Hash.new } + let(:cop_config) { {} } it 'find doubles whose name is a symbol' do expect_violation(<<-RUBY) it do foo = double(:widget)