Skip to content
Browse files

Don't assume the test box has a gemcutter account

  • Loading branch information...
1 parent 0a5a077 commit ae207dbeb56da1dd136c124ca6b8de3752aaad4f @cwninja committed
Showing with 5 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −0 test/fixtures/fake_home_path/.gem/credentials
  3. +2 −1 test/test_support/geminabox_test_case.rb
View
1 .gitignore
@@ -4,3 +4,4 @@ tmp/restart.txtGemfile.lock
Gemfile.lock
vendor/bundle
.rbenv-version
+test/fixtures/fake_home_path/.gem/specs
View
2 test/fixtures/fake_home_path/.gem/credentials
@@ -0,0 +1,2 @@
+---
+:rubygems_api_key: "fake key"
View
3 test/test_support/geminabox_test_case.rb
@@ -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

0 comments on commit ae207db

Please sign in to comment.
Something went wrong with that request. Please try again.