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

Version Path
ffakerTW-1.8.0 test/test_game.rb
ffakerTW-1.7.0 test/test_game.rb
ffakerTW-1.6.0 test/test_game.rb
ffakerTW-1.5.0 test/test_game.rb
ffakerTW-1.4.0 test/test_game.rb
ffakerTW-1.3.0 test/test_game.rb
ffakerTW-1.2.0 test/test_game.rb
ffakerTW-1.1.0 test/test_game.rb
ffakerTW-0.1.0 test/test_game.rb