Skip to content
This repository
Browse code

Fix failing gem dependency tests [#1659 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit 490c26c8433a6d278bc61118782da360e8889646 1 parent 36af857
Mike Gunderloy authored December 29, 2008 lifo committed December 29, 2008

Showing 1 changed file with 12 additions and 12 deletions. Show diff stats Hide diff stats

  1. 24  railties/test/gem_dependency_test.rb
24  railties/test/gem_dependency_test.rb
@@ -9,33 +9,33 @@ class Rails::GemDependency
9 9
 uses_mocha "Plugin Tests" do
10 10
   class GemDependencyTest < Test::Unit::TestCase
11 11
     def setup
12  
-      @gem              = Rails::GemDependency.new "hpricot"
13  
-      @gem_with_source  = Rails::GemDependency.new "hpricot", :source => "http://code.whytheluckystiff.net"
14  
-      @gem_with_version = Rails::GemDependency.new "hpricot", :version => "= 0.6"
15  
-      @gem_with_lib     = Rails::GemDependency.new "aws-s3", :lib => "aws/s3"
16  
-      @gem_without_load  = Rails::GemDependency.new "hpricot", :lib => false
  12
+      @gem              = Rails::GemDependency.new "xhpricotx"
  13
+      @gem_with_source  = Rails::GemDependency.new "xhpricotx", :source => "http://code.whytheluckystiff.net"
  14
+      @gem_with_version = Rails::GemDependency.new "xhpricotx", :version => "= 0.6"
  15
+      @gem_with_lib     = Rails::GemDependency.new "xaws-s3x", :lib => "aws/s3"
  16
+      @gem_without_load  = Rails::GemDependency.new "xhpricotx", :lib => false
17 17
     end
18 18
 
19 19
     def test_configuration_adds_gem_dependency
20 20
       config = Rails::Configuration.new
21  
-      config.gem "aws-s3", :lib => "aws/s3", :version => "0.4.0"
22  
-      assert_equal [["install", "aws-s3", "--version", '"= 0.4.0"']], config.gems.collect(&:install_command)
  21
+      config.gem "xaws-s3x", :lib => "aws/s3", :version => "0.4.0"
  22
+      assert_equal [["install", "xaws-s3x", "--version", '"= 0.4.0"']], config.gems.collect(&:install_command)
23 23
     end
24 24
 
25 25
     def test_gem_creates_install_command
26  
-      assert_equal %w(install hpricot), @gem.install_command
  26
+      assert_equal %w(install xhpricotx), @gem.install_command
27 27
     end
28 28
 
29 29
     def test_gem_with_source_creates_install_command
30  
-      assert_equal %w(install hpricot --source http://code.whytheluckystiff.net), @gem_with_source.install_command
  30
+      assert_equal %w(install xhpricotx --source http://code.whytheluckystiff.net), @gem_with_source.install_command
31 31
     end
32 32
 
33 33
     def test_gem_with_version_creates_install_command
34  
-      assert_equal ["install", "hpricot", "--version", '"= 0.6"'], @gem_with_version.install_command
  34
+      assert_equal ["install", "xhpricotx", "--version", '"= 0.6"'], @gem_with_version.install_command
35 35
     end
36 36
 
37 37
     def test_gem_creates_unpack_command
38  
-      assert_equal %w(unpack hpricot), @gem.unpack_command
  38
+      assert_equal %w(unpack xhpricotx), @gem.unpack_command
39 39
     end
40 40
 
41 41
     def test_gem_with_version_unpack_install_command
@@ -43,7 +43,7 @@ def test_gem_with_version_unpack_install_command
43 43
       mock_spec = mock()
44 44
       mock_spec.stubs(:version).returns('0.6')
45 45
       @gem_with_version.stubs(:specification).returns(mock_spec)
46  
-      assert_equal ["unpack", "hpricot", "--version", '= 0.6'], @gem_with_version.unpack_command
  46
+      assert_equal ["unpack", "xhpricotx", "--version", '= 0.6'], @gem_with_version.unpack_command
47 47
     end
48 48
 
49 49
     def test_gem_adds_load_paths

0 notes on commit 490c26c

Please sign in to comment.
Something went wrong with that request. Please try again.