Permalink
Browse files

Add a passing spec for ticket #636, but don't run it because it's slo…

…w :P
  • Loading branch information...
1 parent 256ab65 commit 69ed6d3a1901e2f160389b5aa5e010b5a54afcfb @indirect indirect committed Nov 13, 2010
Showing with 41 additions and 0 deletions.
  1. +41 −0 spec/install/gems/flex_spec.rb
@@ -269,4 +269,45 @@
L
end
end
+
+ # This was written to test github issue #636, but it passed.
+ # It's insanoly slow (3.36s) so I'm not going to run it
+ # describe "when a locked child dependency conflicts" do
+ # before(:each) do
+ # build_repo2 do
+ # build_gem "capybara", "0.3.9" do |s|
+ # s.add_dependency "rack", ">= 1.0.0"
+ # end
+ #
+ # build_gem "rack", "1.1.0"
+ # build_gem "rails", "3.0.0.rc4" do |s|
+ # s.add_dependency "rack", "~> 1.1.0"
+ # end
+ #
+ # build_gem "rack", "1.2.1"
+ # build_gem "rails", "3.0.0" do |s|
+ # s.add_dependency "rack", "~> 1.2.1"
+ # end
+ # end
+ # end
+ #
+ # it "prints the correct error message" do
+ # # install Rails 3.0.0.rc
+ # install_gemfile <<-G
+ # source "file://#{gem_repo2}"
+ # gem "rails", "3.0.0.rc4"
+ # gem "capybara", "0.3.9"
+ # G
+ #
+ # # upgrade Rails to 3.0.0 and then install again
+ # install_gemfile <<-G
+ # source "file://#{gem_repo2}"
+ # gem "rails", "3.0.0"
+ # gem "capybara", "0.3.9"
+ # G
+ #
+ # out.should match(/Gemfile.lock/)
+ # end
+ # end
+
end

0 comments on commit 69ed6d3

Please sign in to comment.