diff options
-rw-r--r-- | spec/cache/git_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/cache/git_spec.rb b/spec/cache/git_spec.rb index 6958bc3893..0333e81b6a 100644 --- a/spec/cache/git_spec.rb +++ b/spec/cache/git_spec.rb @@ -140,5 +140,18 @@ end bundled_app("vendor/cache/has_submodule-1.0-#{ref}/submodule-1.0").should exist should_be_installed "has_submodule 1.0" end + + it "displays warning message when detecting git repo in Gemfile" do + git = build_git "foo" + ref = git.ref_for("master", 11) + + install_gemfile <<-G + gem "foo", :git => '#{lib_path("foo-1.0")}' + G + + bundle "#{cmd}" + + out.should include("Your Gemfile contains path and git dependencies.") + end end end
\ No newline at end of file |