Attempt ruby-download before ruby-build.

This commit is contained in:
Anthony Sottile 2014-06-07 14:25:44 -07:00
parent 09650b814a
commit 07664a80ca
7 changed files with 24 additions and 9 deletions

View file

@ -93,8 +93,8 @@ def ruby_hooks_repo(dummy_git_repo):
@pytest.yield_fixture
def ruby_1_9_3_p547_hooks_repo(dummy_git_repo):
yield _make_repo(dummy_git_repo, 'ruby_1_9_3_p547_hooks_repo')
def ruby_1_9_3_hooks_repo(dummy_git_repo):
yield _make_repo(dummy_git_repo, 'ruby_1_9_3_hooks_repo')
@pytest.yield_fixture
@ -149,8 +149,8 @@ def config_for_ruby_hooks_repo(ruby_hooks_repo):
@pytest.yield_fixture
def config_for_ruby_1_9_3_p547_hooks_repo(ruby_1_9_3_p547_hooks_repo):
yield _make_config(ruby_1_9_3_p547_hooks_repo, 'ruby_hook')
def config_for_ruby_1_9_3_hooks_repo(ruby_1_9_3_hooks_repo):
yield _make_config(ruby_1_9_3_hooks_repo, 'ruby_hook')
@pytest.yield_fixture

View file

@ -44,11 +44,11 @@ def test_run_versioned_node_hook(config_for_node_0_11_8_hooks_repo, store):
@pytest.mark.herpderp
@skipif_slowtests_false
@pytest.mark.integration
def test_run_versioned_ruby_hook(config_for_ruby_1_9_3_p547_hooks_repo, store):
repo = Repository.create(config_for_ruby_1_9_3_p547_hooks_repo, store)
def test_run_versioned_ruby_hook(config_for_ruby_1_9_3_hooks_repo, store):
repo = Repository.create(config_for_ruby_1_9_3_hooks_repo, store)
ret = repo.run_hook('ruby_hook', [])
assert ret[0] == 0
assert ret[1] == '1.9.3\n547\nHello world from a ruby hook\n'
assert ret[1] == '1.9.3\n484\nHello world from a ruby hook\n'
@pytest.mark.integration