Sha256: 67031a5abb1b11075c4da91259ab51e9319195d18b7e9ccf79945b5898514d80

Contents?: true

Size: 410 Bytes

Versions: 9

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(FFakerTW::Movie, :title, :rating)

  def setup
    @tester = FFakerTW::Movie
  end

  def test_title
    assert_match(/[ a-z]+/, FFakerTW::Movie.title)
  end

  def test_rating
    assert FFakerTW::Movie::RATINGS.include? @tester.rating
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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