diff options
Diffstat (limited to 'spec/bundler/gem_specification_spec.rb')
-rw-r--r-- | spec/bundler/gem_specification_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/gem_specification_spec.rb b/spec/bundler/gem_specification_spec.rb index f98182d870..3389196efc 100644 --- a/spec/bundler/gem_specification_spec.rb +++ b/spec/bundler/gem_specification_spec.rb @@ -9,7 +9,7 @@ describe "Gem::Specification" do s.source = 'http://gems.rubyforge.org' end - spec.source.should == URI.parse("http://gems.rubyforge.org") + spec.source.should == Bundler::Source.new("http://gems.rubyforge.org") end it "does not consider two gem specs with different sources to be the same" do @@ -20,13 +20,13 @@ describe "Gem::Specification" do end spec2 = spec1.dup - spec2.source = "http://gems.github.com" + spec2.source = Bundler::Source.new("http://gems.github.com") spec1.should_not == spec2 end - it "can set a source that is already a URI" do - source = URI.parse("http://foo") + it "can set a source that is already a Source" do + source = Bundler::Source.new("http://foo") spec = Gem::Specification.new spec.source = source spec.source.should == source |