spec/code/object/dictionary_spec.rb in code-ruby-0.13.1 vs spec/code/object/dictionary_spec.rb in code-ruby-0.14.0

- old
+ new

@@ -5,23 +5,23 @@ RSpec.describe Code::Object::Dictionary do let(:dictionary) { 'dictionary = { first_name: "Dorian", language: :code }' } [ [ - "dictionary.select { |key, value, dictionnary, index| key == :first_name }", + "dictionary.select { |key| key == :first_name }", "{ first_name: :Dorian }" ], [ - "dictionary.select { |key, value, dictionnary, index| value == :Dorian }", + "dictionary.select { |_, value| value == :Dorian }", "{ first_name: :Dorian }" ], [ - "dictionary.select { |key, value, dictionnary, index| dictionnary.two? }", - "dictionary" + "dictionary.select { |_, _, index, _| index.zero? }", + "{ first_name: :Dorian }" ], [ - "dictionary.select { |key, value, dictionnary, index| index.zero? }", - "{ first_name: :Dorian }" + "dictionary.select { |_, _, _, dictionary| dictionary.two? }", + "dictionary" ], [ "dictionary.fetch(:first_name, :last_name) { :MariƩ }", "{ first_name: :Dorian, last_name: :MariƩ }" ],