File: test_jo_jo.rb

package info (click to toggle)
ruby-ffaker 2.25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,852 kB
  • sloc: ruby: 13,136; makefile: 8; sh: 1
file content (29 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

require_relative 'helper'

class TestJoJo < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(FFaker::JoJo, :full_name, :first_name, :last_name, :stand)

  def setup
    @tester = FFaker::JoJo
  end

  def test_full_name
    assert_include @tester::FULL_NAMES, @tester.full_name
  end

  def test_first_name
    assert_include @tester::FIRST_NAMES, @tester.first_name
  end

  def test_last_name
    assert_include @tester::LAST_NAMES, @tester.last_name
  end

  def test_stand
    assert_include @tester::STANDS, @tester.stand
  end
end