Partially revert 185fe2e9cc

We shouldn't quote the unpack command's requirement as it's passed through GemRunner which takes care of it for us.
This commit is contained in:
Michael Koziarski 2008-09-24 18:45:53 +02:00
parent 025736de8e
commit a78ec93036
2 changed files with 4 additions and 2 deletions

View File

@ -120,7 +120,9 @@ module Rails
def unpack_command
cmd = %w(unpack) << @name
cmd << "--version" << %("#{@requirement.to_s}") if @requirement
# We don't quote this requirement as it's run through GemRunner instead
# of shelling out to gem
cmd << "--version" << @requirement.to_s if @requirement
cmd
end
end

View File

@ -37,7 +37,7 @@ uses_mocha "Plugin Tests" do
end
def test_gem_with_version_unpack_install_command
assert_equal ["unpack", "hpricot", "--version", '"= 0.6"'], @gem_with_version.unpack_command
assert_equal ["unpack", "hpricot", "--version", '= 0.6'], @gem_with_version.unpack_command
end
def test_gem_adds_load_paths