Skip to content

Commit

Permalink
Fix url to github user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
pweldon authored and Wesley Beary committed Jan 17, 2011
1 parent 7596e4a commit 6faf1de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion excon.gemspec
Expand Up @@ -27,7 +27,7 @@ Gem::Specification.new do |s|
## a custom homepage, consider using your GitHub URL or the like.
s.authors = ["geemus (Wesley Beary)"]
s.email = 'geemus@gmail.com'
s.homepage = 'http://github.com/geemus/NAME'
s.homepage = 'https://github.com/geemus'

## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
Expand Down
10 changes: 10 additions & 0 deletions tests/gemspec_tests.rb
@@ -0,0 +1,10 @@
require File.expand_path('../test_helper', __FILE__)

Shindo.tests('gemspec') do
tests('home page url') do
returns(200) do
profile_url = File.read(File.expand_path('../../excon.gemspec',__FILE__)).match(/s.homepage = '([^']+)'/)[1]
Excon.get(profile_url).status
end
end
end
2 changes: 1 addition & 1 deletion tests/test_helper.rb
Expand Up @@ -9,7 +9,7 @@ def local_file(*parts)

def with_rackup(configru = local_file('config.ru'))
pid, w, r, e = Open4.popen4("rackup #{configru}")
while `lsof -p #{pid} -P -i | grep ruby | grep TCP`.chomp.empty?; end
until e.gets =~ /HTTPServer#start:/; end
yield
ensure
Process.kill(9, pid)
Expand Down

0 comments on commit 6faf1de

Please sign in to comment.