Sha256: 781dd71580a0d56dbf574e4c34581aebac70e81a46e27068512672bfb40acf9c
Contents?: true
Size: 491 Bytes
Versions: 9
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestGame < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::Game, :title, :category, :mechanic ) def setup @tester = FFakerTW::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
9 entries across 9 versions & 1 rubygems