public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Fix failing gem dependency tests [#1659 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
ffmike (author)
Mon Dec 29 06:00:30 -0800 2008
lifo (committer)
Mon Dec 29 12:00:47 -0800 2008
commit  490c26c8433a6d278bc61118782da360e8889646
tree    367f93da2d89e82863f15bfe8948852761477353
parent  36af857c435cbbdb43f5a7bed200ddaa5e10ef80
...
9
10
11
12
13
14
15
16
 
 
 
 
 
17
18
19
20
21
22
 
 
23
24
25
26
 
27
28
29
30
 
31
32
33
34
 
35
36
37
38
 
39
40
41
...
43
44
45
46
 
47
48
49
...
9
10
11
 
 
 
 
 
12
13
14
15
16
17
18
19
20
 
 
21
22
23
24
25
 
26
27
28
29
 
30
31
32
33
 
34
35
36
37
 
38
39
40
41
...
43
44
45
 
46
47
48
49
0
@@ -9,33 +9,33 @@ Rails::VendorGemSourceIndex.silence_spec_warnings = true
0
 uses_mocha "Plugin Tests" do
0
   class GemDependencyTest < Test::Unit::TestCase
0
     def setup
0
-      @gem              = Rails::GemDependency.new "hpricot"
0
-      @gem_with_source  = Rails::GemDependency.new "hpricot", :source => "http://code.whytheluckystiff.net"
0
-      @gem_with_version = Rails::GemDependency.new "hpricot", :version => "= 0.6"
0
-      @gem_with_lib     = Rails::GemDependency.new "aws-s3", :lib => "aws/s3"
0
-      @gem_without_load  = Rails::GemDependency.new "hpricot", :lib => false
0
+      @gem              = Rails::GemDependency.new "xhpricotx"
0
+      @gem_with_source  = Rails::GemDependency.new "xhpricotx", :source => "http://code.whytheluckystiff.net"
0
+      @gem_with_version = Rails::GemDependency.new "xhpricotx", :version => "= 0.6"
0
+      @gem_with_lib     = Rails::GemDependency.new "xaws-s3x", :lib => "aws/s3"
0
+      @gem_without_load  = Rails::GemDependency.new "xhpricotx", :lib => false
0
     end
0
 
0
     def test_configuration_adds_gem_dependency
0
       config = Rails::Configuration.new
0
-      config.gem "aws-s3", :lib => "aws/s3", :version => "0.4.0"
0
-      assert_equal [["install", "aws-s3", "--version", '"= 0.4.0"']], config.gems.collect(&:install_command)
0
+      config.gem "xaws-s3x", :lib => "aws/s3", :version => "0.4.0"
0
+      assert_equal [["install", "xaws-s3x", "--version", '"= 0.4.0"']], config.gems.collect(&:install_command)
0
     end
0
 
0
     def test_gem_creates_install_command
0
-      assert_equal %w(install hpricot), @gem.install_command
0
+      assert_equal %w(install xhpricotx), @gem.install_command
0
     end
0
 
0
     def test_gem_with_source_creates_install_command
0
-      assert_equal %w(install hpricot --source http://code.whytheluckystiff.net), @gem_with_source.install_command
0
+      assert_equal %w(install xhpricotx --source http://code.whytheluckystiff.net), @gem_with_source.install_command
0
     end
0
 
0
     def test_gem_with_version_creates_install_command
0
-      assert_equal ["install", "hpricot", "--version", '"= 0.6"'], @gem_with_version.install_command
0
+      assert_equal ["install", "xhpricotx", "--version", '"= 0.6"'], @gem_with_version.install_command
0
     end
0
 
0
     def test_gem_creates_unpack_command
0
-      assert_equal %w(unpack hpricot), @gem.unpack_command
0
+      assert_equal %w(unpack xhpricotx), @gem.unpack_command
0
     end
0
 
0
     def test_gem_with_version_unpack_install_command
0
@@ -43,7 +43,7 @@ uses_mocha "Plugin Tests" do
0
       mock_spec = mock()
0
       mock_spec.stubs(:version).returns('0.6')
0
       @gem_with_version.stubs(:specification).returns(mock_spec)
0
-      assert_equal ["unpack", "hpricot", "--version", '= 0.6'], @gem_with_version.unpack_command
0
+      assert_equal ["unpack", "xhpricotx", "--version", '= 0.6'], @gem_with_version.unpack_command
0
     end
0
 
0
     def test_gem_adds_load_paths

Comments