Sha256: 700ebe9a30919b1963e68878debc49575e74c2f380280a25ccbd91d34c3c5947

Contents?: true

Size: 777 Bytes

Versions: 1

Compression:

Stored size: 777 Bytes

Contents

# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerDnD < Test::Unit::TestCase
  def setup
    @tester = Faker::Games::DnD
  end

  def test_alignment
    assert @tester.alignment.match(/\w+/)
  end

  def test_background
    assert @tester.background.match(/\w+/)
  end

  def test_city
    assert @tester.city.match(/\w+/)
  end

  def test_klass
    assert @tester.klass.match(/\w+/)
  end

  def test_language
    assert @tester.language.match(/\w+/)
  end

  def test_melee_weapon
    assert @tester.melee_weapon.match(/\w+/)
  end

  def test_monster
    assert @tester.monster.match(/\w+/)
  end

  def test_race
    assert @tester.race.match(/\w+/)
  end

  def test_ranged_weapon
    assert @tester.ranged_weapon.match(/\w+/)
  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/games/test_faker_dnd.rb