lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-1.15.0 vs lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-1.15.1

- old
+ new

@@ -17,30 +17,30 @@ # expect(name).to eq("John") # class ExpectActual < Cop MSG = 'Provide the actual you are testing to `expect(...)`.'.freeze - SIMPLE_LITERALS = %i( + SIMPLE_LITERALS = %i[ true false nil int float str sym complex rational regopt - ).freeze + ].freeze - COMPLEX_LITERALS = %i( + COMPLEX_LITERALS = %i[ array hash pair irange erange regexp - ).freeze + ].freeze def_node_matcher :expect_literal, '(send _ :expect $#literal?)' def on_send(node) expect_literal(node) do |argument|