Thursday, June 04, 2026 1:48:14 AM
> test_blank_active_support.rb
# frozen_string_literal: true

require "test_helper"

class TestOstructBlank < Minitest::Test
  def setup
    fail "Active support must be defined for this test" unless defined?(ActiveSupport)
  end

  def test_it_is_blank
    input = OpenStruct.new

    assert(input.blank?)
  end

  def test_it_is_not_blank
    input = OpenStruct.new(foo: "bar")

    refute(input.blank?)
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 4294fb2