Sha256: 8b5b39de63b913ec3289fae46c6e306d9f68fd2bb1732351b63eeee194e38430

Contents?: true

Size: 373 Bytes

Versions: 7

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

require 'helper'

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

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_airline.rb
ffaker-2.17.0 test/test_airline.rb
ffaker-2.16.0 test/test_airline.rb
ffaker-2.15.0 test/test_airline.rb
ffaker-2.14.0 test/test_airline.rb
ffaker-2.13.0 test/test_airline.rb
ffaker-2.12.0 test/test_airline.rb