Debian Codegraph @

test/faker/sports/test_faker_football.rb

raw symbols SCIP
1 # frozen_string_literal: true
2
3 require_relative '../../test_helper'
4
5 class TestFakerFootball < Test::Unit::TestCase
6 def setup
7 @tester = Faker::Sports::Football
8 end
9
10 def test_team
11 assert_match(/\w+/, @tester.team)
12 end
13
14 def test_player
15 assert_match(/\w+/, @tester.player)
16 end
17
18 def test_coach
19 assert_match(/\w+/, @tester.coach)
20 end
21
22 def test_competition
23 assert_match(/\w+/, @tester.competition)
24 end
25
26 def test_position
27 assert_match(/\w+/, @tester.position)
28 end
29 end