Skip to content

Commit

Permalink
Don't assume the test box has a gemcutter account
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlea committed Jan 20, 2013
1 parent 0a5a077 commit ae207db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ tmp/restart.txtGemfile.lock
Gemfile.lock
vendor/bundle
.rbenv-version
test/fixtures/fake_home_path/.gem/specs
2 changes: 2 additions & 0 deletions test/fixtures/fake_home_path/.gem/credentials
@@ -0,0 +1,2 @@
---
:rubygems_api_key: "fake key"
3 changes: 2 additions & 1 deletion test/test_support/geminabox_test_case.rb
Expand Up @@ -119,7 +119,8 @@ def execute(command)

def gemcutter_push(gemfile)
Geminabox::TestCase.setup_fake_home!
command = "GEM_HOME=#{FAKE_HOME} gem push #{gemfile} --host '#{config.url_with_port(@test_server_port)}' 2>&1"
home= FIXTURES_PATH.join('fake_home_path')
command = "GEM_HOME=#{FAKE_HOME} HOME=#{home} gem push #{gemfile} --host '#{config.url_with_port(@test_server_port)}' 2>&1"
puts "About to run #{command.inspect}"
execute(command)
end
Expand Down

0 comments on commit ae207db

Please sign in to comment.