Skip to content

Commit

Permalink
change cert path to be correct
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardBlair committed Jan 15, 2015
1 parent a3f5b08 commit 86cadb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_utils/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Connection
OPEN_TIMEOUT = 60
READ_TIMEOUT = 60
VERIFY_PEER = true
CA_FILE = (File.dirname(__FILE__) + '/../../certs/cacert.pem')
CA_FILE = (File.dirname(__FILE__) + '/../certs/cacert.pem')
CA_PATH = nil
RETRY_SAFE = false
RUBY_184_POST_HEADERS = { "Content-Type" => "application/x-www-form-urlencoded" }
Expand Down
4 changes: 4 additions & 0 deletions test/unit/connection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def setup
@connection.logger = stub(:info => nil, :debug => nil, :error => nil)
end

def test_path_to_cert_is_correct
assert File.exists?(ActiveUtils::Connection::CA_FILE)
end

def test_connection_endpoint_parses_string_to_uri
assert_equal URI.parse(@endpoint), @connection.endpoint
end
Expand Down

0 comments on commit 86cadb2

Please sign in to comment.