Sha256: c40a4296a70fef2ab344a6ef286ae48b3059573c93b18fd6e10291edbdb448f6

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerBlood < Test::Unit::TestCase
  def setup
    @tester = Faker::Blood
  end

  def test_type
    assert @tester.type.match(/^(AB|A|B|O)$/)
  end

  def test_rh_factor
    assert @tester.rh_factor.match(/[+-]/)
  end

  def test_group
    assert @tester.group.match(/^(AB|A|B|O)[+-]$/)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/test/faker/default/test_faker_blood.rb