Sha256: c7352292c6d145f3d61955b9565b406fd2cbd01c9533b45506ce89b3b940a334
Contents?: true
Size: 487 Bytes
Versions: 6
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestGame < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::Game, :title, :category, :mechanic ) def setup @tester = FFaker::Game end def test_title assert_match(/[\sa-z]+/, @tester.title) end def test_category assert_match(%r{[\w\s'/]+}, @tester.category) end def test_mechanic assert_match(/[\sa-z]+/, @tester.mechanic) end end
Version data entries
6 entries across 6 versions & 1 rubygems