Permalink
Browse files

- Fixed tests to not bother if we're not logged into OSX

[git-p4: depot-paths = "//src/osx_keychain/dev/": change = 5698]
  • Loading branch information...
1 parent a87aaea commit 1ea5864c4ff851732f6e3e0179666a5df29ee39e @zenspider zenspider committed Mar 9, 2010
Showing with 6 additions and 1 deletion.
  1. +3 −0 Rakefile
  2. +3 −1 test/test_osx_keychain.rb
View
@@ -3,6 +3,9 @@
require 'rubygems'
require 'hoe'
+Hoe.add_include_dirs("../../RubyInline/dev/lib",
+ "../../ZenTest/dev/lib")
+
Hoe.plugin :seattlerb
Hoe.spec 'osx_keychain' do
@@ -1,6 +1,8 @@
require "minitest/autorun"
require "osx_keychain"
+CAN_TEST = ENV['SECURITYSESSIONID']
+
class TestOsxKeychain < MiniTest::Unit::TestCase
def test_sanity
keychain = OSXKeychain.new
@@ -11,5 +13,5 @@ def test_sanity
assert_equal pass, keychain[serv, user]
assert_equal pass, keychain[serv]
- end
+ end if CAN_TEST
end

0 comments on commit 1ea5864

Please sign in to comment.