Sha256: 0ee89ae3e72669debe2c2533f1587304672f3daae1aafd1ead2c12a973856aae

Contents?: true

Size: 523 Bytes

Versions: 16

Compression:

Stored size: 523 Bytes

Contents

require 'fog/serverlove/util/compute/password_generator'

Shindo.tests('Fog::Compute::Serverlove::PasswordGenerator | generate password', ['serverlove']) do

  @password = Fog::Compute::Serverlove::PasswordGenerator.generate

  tests("@password.length").returns(8) do
    @password.length
  end

  tests("@password contains one capital letter").returns(true) do
    @password.match(/[A-Z]/) && true
  end

  tests("@password contains one lower case letter").returns(true) do
    @password.match(/[a-z]/) && true
  end

end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/serverlove/util/compute/password_generator_tests.rb
fog-1.26.0 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.25.0 tests/serverlove/util/compute/password_generator_tests.rb
nsidc-fog-1.24.1 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.24.0 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.11 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.10 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.9 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.8 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.7 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.6 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.23.0 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.4 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.3 tests/serverlove/util/compute/password_generator_tests.rb
ns-fog-1.22.2 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.22.1 tests/serverlove/util/compute/password_generator_tests.rb