File: test_half_life.rb

package info (click to toggle)
ruby-faker 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,596 kB
  • sloc: ruby: 20,656; sh: 6; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerGamesHalfLife < Test::Unit::TestCase
  def setup
    @tester = Faker::Games::HalfLife
  end

  def test_character
    assert_match(/\w+/, @tester.character)
  end

  def test_enemy
    assert_match(/\w+/, @tester.enemy)
  end

  def test_location
    assert_match(/\w+/, @tester.location)
  end
end