summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
commit3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b (patch)
treec4a278220ba8141b829c5c7b0777c1049cfe413c /test/rubygems
parent39da1b63699faf30c86e753e193c29b81b16136d (diff)
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_commands_unpack_command.rb14
-rw-r--r--test/rubygems/test_gem_platform.rb8
-rw-r--r--test/rubygems/test_gem_silent_ui.rb4
3 files changed, 13 insertions, 13 deletions
diff --git a/test/rubygems/test_gem_commands_unpack_command.rb b/test/rubygems/test_gem_commands_unpack_command.rb
index 8291a6b949..8764a4017b 100644
--- a/test/rubygems/test_gem_commands_unpack_command.rb
+++ b/test/rubygems/test_gem_commands_unpack_command.rb
@@ -21,7 +21,7 @@ class TestGemCommandsUnpackCommand < Gem::TestCase
util_make_gems
assert_equal(
- @cmd.find_in_cache(@a1.file_name),
+ @cmd.find_in_cache(@a1.file_name),
Gem.cache_gem(@a1.file_name, @gemhome),
'found a-1.gem in the cache'
)
@@ -31,7 +31,7 @@ class TestGemCommandsUnpackCommand < Gem::TestCase
util_make_gems
util_setup_fake_fetcher
util_setup_spec_fetcher @a1
-
+
a1_data = nil
open Gem.cache_gem(@a1.file_name, @gemhome), 'rb' do |fp|
@@ -40,19 +40,19 @@ class TestGemCommandsUnpackCommand < Gem::TestCase
Gem::RemoteFetcher.fetcher.data['http://gems.example.com/gems/a-1.gem'] =
a1_data
-
+
dep = Gem::Dependency.new(@a1.name, @a1.version)
assert_equal(
- @cmd.get_path(dep),
- Gem.cache_gem(@a1.file_name, @gemhome),
+ @cmd.get_path(dep),
+ Gem.cache_gem(@a1.file_name, @gemhome),
'fetches a-1 and returns the cache path'
)
FileUtils.rm Gem.cache_gem(@a1.file_name, @gemhome)
assert_equal(
- @cmd.get_path(dep),
- Gem.cache_gem(@a1.file_name, @gemhome),
+ @cmd.get_path(dep),
+ Gem.cache_gem(@a1.file_name, @gemhome),
'when removed from cache, refetches a-1'
)
end
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb
index 666669b233..485bab72a2 100644
--- a/test/rubygems/test_gem_platform.rb
+++ b/test/rubygems/test_gem_platform.rb
@@ -235,7 +235,7 @@ class TestGemPlatform < Gem::TestCase
util_set_arch 'java'
assert_match 'java', Gem::Platform.local
assert_match 'jruby', Gem::Platform.local
-
+
util_set_arch 'universal-dotnet2.0'
assert_match 'universal-dotnet', Gem::Platform.local
assert_match 'universal-dotnet-2.0', Gem::Platform.local
@@ -243,13 +243,13 @@ class TestGemPlatform < Gem::TestCase
assert_match 'dotnet', Gem::Platform.local
assert_match 'dotnet-2.0', Gem::Platform.local
refute_match 'dotnet-4.0', Gem::Platform.local
-
+
util_set_arch 'universal-dotnet4.0'
assert_match 'universal-dotnet', Gem::Platform.local
- refute_match 'universal-dotnet-2.0', Gem::Platform.local
+ refute_match 'universal-dotnet-2.0', Gem::Platform.local
assert_match 'universal-dotnet-4.0', Gem::Platform.local
assert_match 'dotnet', Gem::Platform.local
- refute_match 'dotnet-2.0', Gem::Platform.local
+ refute_match 'dotnet-2.0', Gem::Platform.local
assert_match 'dotnet-4.0', Gem::Platform.local
util_set_arch 'powerpc-darwin'
diff --git a/test/rubygems/test_gem_silent_ui.rb b/test/rubygems/test_gem_silent_ui.rb
index 1968a89b28..8005b3b1cc 100644
--- a/test/rubygems/test_gem_silent_ui.rb
+++ b/test/rubygems/test_gem_silent_ui.rb
@@ -55,7 +55,7 @@ class TestGemSilentUI < Gem::TestCase
assert_empty out, 'No output'
assert_empty err, 'No output'
-
+
out, err = capture_io do
use_ui @sui do
value = @sui.ask_yes_no 'Problem?', true
@@ -66,7 +66,7 @@ class TestGemSilentUI < Gem::TestCase
assert_empty err, 'No output'
assert value, 'Value is true'
-
+
out, err = capture_io do
use_ui @sui do
value = @sui.ask_yes_no 'Problem?', false