aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_specification_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_specification_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_specification_command.rb30
1 files changed, 13 insertions, 17 deletions
diff --git a/test/rubygems/test_gem_commands_specification_command.rb b/test/rubygems/test_gem_commands_specification_command.rb
index fb28302cc3..80564f9dce 100644
--- a/test/rubygems/test_gem_commands_specification_command.rb
+++ b/test/rubygems/test_gem_commands_specification_command.rb
@@ -10,7 +10,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
end
def test_execute
- foo = quick_spec 'foo'
+ foo = util_spec 'foo'
install_specs foo
@@ -26,8 +26,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
end
def test_execute_all
- quick_spec 'foo', '0.0.1'
- quick_spec 'foo', '0.0.2'
+ util_spec 'foo', '0.0.1'
+ util_spec 'foo', '0.0.2'
@cmd.options[:args] = %w[foo]
@cmd.options[:all] = true
@@ -44,8 +44,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
end
def test_execute_all_conflicts_with_version
- quick_spec 'foo', '0.0.1'
- quick_spec 'foo', '0.0.2'
+ util_spec 'foo', '0.0.1'
+ util_spec 'foo', '0.0.2'
@cmd.options[:args] = %w[foo]
@cmd.options[:all] = true
@@ -89,8 +89,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
end
def test_execute_exact_match
- quick_spec 'foo'
- quick_spec 'foo_bar'
+ util_spec 'foo'
+ util_spec 'foo_bar'
@cmd.options[:args] = %w[foo]
@@ -118,7 +118,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
end
def test_execute_file
- foo = quick_spec 'foo' do |s|
+ foo = util_spec 'foo' do |s|
s.files = %w[lib/code.rb]
end
@@ -188,10 +188,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
def test_execute_remote_without_prerelease
spec_fetcher do |fetcher|
- foo = fetcher.spec 'foo', '2.0.0'
- foo_pre = fetcher.spec 'foo', '2.0.1.pre'
-
- install_specs foo, foo_pre
+ fetcher.spec 'foo', '2.0.0'
+ fetcher.spec 'foo', '2.0.1.pre'
end
@cmd.options[:args] = %w[foo]
@@ -211,10 +209,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
def test_execute_remote_with_prerelease
spec_fetcher do |fetcher|
- foo = fetcher.spec 'foo', '2.0.0'
- foo_pre = fetcher.spec 'foo', '2.0.1.pre'
-
- install_specs foo, foo_pre
+ fetcher.spec 'foo', '2.0.0'
+ fetcher.spec 'foo', '2.0.1.pre'
end
@cmd.options[:args] = %w[foo]
@@ -234,7 +230,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
end
def test_execute_ruby
- foo = quick_spec 'foo'
+ foo = util_spec 'foo'
install_specs foo