Skip to content

Instantly share code, notes, and snippets.

View gwynolanga's full-sized avatar

Kirill Ilin gwynolanga

  • Batumi, Georgia
  • 01:43 (UTC +04:00)
View GitHub Profile
@gwynolanga
gwynolanga / custom_assertions_helper.rb
Last active July 16, 2022 15:01
Some custom assertions for Minitest
# frozen_string_literal: true
module CustomAssertionsHelper
UNTRACKED = Object.new
def assert_many_changes(expression_array, message = nil, from_array: UNTRACKED, to_array: UNTRACKED, &block)
expressions = Array(expression_array)
from_values = Array(from_array)
to_values = Array(to_array)