Sha256: 5c1ea58e031d2433f057a3e630e19155dc554f5d97c6aa568f5b32aff548badc

Contents?: true

Size: 497 Bytes

Versions: 8

Compression:

Stored size: 497 Bytes

Contents

require 'asl-test-utils'

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

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

  def test_run_as_normal_user
    assert_equal([false, "", _("need root authority.") + "\n"],
                 run_command_as_normal_user)
  end

  def test_populate
    assert_not_equal([], ActiveSambaLdap::Base.search)
    assert_equal([true, "", ""], run_command)
    assert_equal([], ActiveSambaLdap::Base.search)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
activesambaldap-0.1.0 test/test_asl_purge.rb
activesambaldap-0.0.9 test/test_asl_purge.rb
activesambaldap-0.0.8 test/test_asl_purge.rb
ActiveSambaLdap-0.0.7 test/test_asl_purge.rb
activesambaldap-0.0.7 test/test_asl_purge.rb
activesambaldap-0.0.6 test/test_asl_purge.rb
activesambaldap-0.0.5 test/test_asl_purge.rb
activesambaldap-0.0.4 test/test_asl_purge.rb