Permalink
Browse files

+ dependency spec

  • Loading branch information...
1 parent 5a736c4 commit 0785edfbff4ed5bf92bc20be882051218378cbe6 @alloy alloy committed Sep 14, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/unit/dependency_spec.rb
@@ -0,0 +1,9 @@
+require File.expand_path('../../spec_helper', __FILE__)
+
+describe "Pod::Dependency" do
+ it "merges dependencies (taken from newer RubyGems version)" do
+ dep1 = Pod::Dependency.new('bananas', '>= 1.8')
+ dep2 = Pod::Dependency.new('bananas', '1.9')
+ dep1.merge(dep2).should == Pod::Dependency.new('bananas', '>= 1.8', '1.9')
+ end
+end

0 comments on commit 0785edf

Please sign in to comment.