test/test_gender.rb in ffaker-2.2.0 vs test/test_gender.rb in ffaker-2.3.0
- old
+ new
@@ -1,14 +1,18 @@
# encoding: utf-8
require 'helper'
class TestFakerGender < Test::Unit::TestCase
+ include DeterministicHelper
+
+ assert_methods_are_deterministic(FFaker::Gender, :random)
+
def setup
@tester = FFaker::Gender
end
def test_random
gender_regex = /\A(male|female)\z/
- assert_match gender_regex, @tester.random
+ assert_match(gender_regex, @tester.random)
end
end