Sha256: a7fc0f97d6e69e38475bd03006af63e7a932c9199cff44afa551975af222cc15

Contents?: true

Size: 630 Bytes

Versions: 9

Compression:

Stored size: 630 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(FFakerTW::AWS, :instance_type)

  def test_instance_type
    assert_match(/\A[a-z]+\d\.\d*[a-z]+/, FFakerTW::AWS.instance_type)
  end

  def test_offering_type
    assert_match(/\A[ a-zA-Z]+\z/i, FFakerTW::AWS.offering_type)
  end

  def test_instance_tenancy
    assert_match(/\A(?:default|dedicated|host)+\z/i, FFakerTW::AWS.instance_tenancy)
  end

  def test_product_description
    assert_match(%r{\A[ /a-zA-Z()]+\z}i, FFakerTW::AWS.product_description)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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