Sha256: d63f092365eb1d97e7b5dffc05c783bfabfb43b1ccd263a37a11447f0ac4e141

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

require "test_birst_command"

class Test_deobfuscate < Test::Unit::TestCase

  def setup
    @pwd = "mysecretpass"
    @obs_pwd = "IQX4os6wCE7rl+JuSYL2Iw=="
  end

  def teardown
  end

  def test_obfuscate
    assert_equal @obs_pwd, Obfuscate.obfuscate(@pwd), "Expecting password #{@obs_pwd}"
  end

  def test_deobfuscate
    assert_equal @pwd, Obfuscate.deobfuscate(@obs_pwd), "Expecting password #{@pwd}"
  end

end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
Birst_Command-0.3.0 test/standard/test_deobfuscate.rb
Birst_Command-0.2.2 test/standard/test_deobfuscate.rb
Birst_Command-0.2.1 test/standard/test_deobfuscate.rb
Birst_Command-0.2.0 test/standard/test_deobfuscate.rb
Birst_Command-0.1.1 test/standard/test_deobfuscate.rb
Birst_Command-0.1.0 test/standard/test_deobfuscate.rb