lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/end_of_hour_spec.rb



# frozen_string_literal: true

RSpec.describe :end_of_hour do
  link :end_of_hour, from: :ree_datetime

  it {
    result = end_of_hour(DateTime.new(2022, 5, 26, 13, 15, 10))

    expect(result).to eq(DateTime.new(2022, 5, 26, 13, 59, 59.999999))
  }

  it {
    result = end_of_hour()

    expect(result).to be_a(DateTime)
  }
end