Sha256: 4ecd1104eae29b0b5b1a950fba7cc6655fe40d5cec5064a3f28a2f29cdcacad3

Contents?: true

Size: 528 Bytes

Versions: 75

Compression:

Stored size: 528 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

75 entries across 75 versions & 10 rubygems

Version Path
fog-1.10.1 tests/serverlove/util/compute/password_generator_tests.rb
fog-parser-fix-1.6.1 tests/serverlove/util/compute/password_generator_tests.rb
fog-test-again-1.6.0 tests/serverlove/util/compute/password_generator_tests.rb
fog-test-me-1.10.0 tests/serverlove/util/compute/password_generator_tests.rb
fog-parser-fix-1.6.0 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.10.0 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.9.0 tests/serverlove/util/compute/password_generator_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/serverlove/util/compute/password_generator_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/serverlove/util/compute/password_generator_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/serverlove/util/compute/password_generator_tests.rb
fog-sgonyea-1.8.1 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.8.0 tests/serverlove/util/compute/password_generator_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.7.0 tests/serverlove/util/compute/password_generator_tests.rb
fog-1.6.0 tests/serverlove/util/compute/password_generator_tests.rb