Sha256: 3d818dfca63f268dd89333a72d03c4fa609de9b6fe24e9008998babc03b7cadd

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

require 'asl-test-utils'

class AslUserShowTest < Test::Unit::TestCase
  include AslTestUtils

  def setup
    super
    @command = File.join(@bin_dir, "asl-usershow")
  end

  def test_exist_user
    make_dummy_user do |user, password|
      user.class.establish_connection("reference")
      begin
        user = user.class.find(user.uid)
        assert_equal([true, user.to_ldif, ""], run_command(user.uid))
      ensure
        user.class.establish_connection("update")
      end
    end
  end

  def test_not_exist_user
    assert_equal([false, "", _("user doesn't exist: %s") % 'not-exist' + "\n"],
                 run_command("not-exist"))
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activesambaldap-0.0.4 test/test_asl_usershow.rb
activesambaldap-0.0.5 test/test_asl_usershow.rb
activesambaldap-0.0.6 test/test_asl_usershow.rb