Sha256: 338bf01caff95aea7d2b756434b5d7802fff4792e7fd9a427615a5e69b05da79

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(FFakerTW::Airline, :name, :flight_number)

  def test_name
    assert_match(/\A.+\z/, FFakerTW::Airline.name)
  end

  def test_flight_number
    assert_match(/\w{2,3} \d{1,4}\z/, FFakerTW::Airline.flight_number)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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