diff options
Diffstat (limited to 'spec/install/gemfile_spec.rb')
-rw-r--r-- | spec/install/gemfile_spec.rb | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/spec/install/gemfile_spec.rb b/spec/install/gemfile_spec.rb index c553b629ff..497aab065d 100644 --- a/spec/install/gemfile_spec.rb +++ b/spec/install/gemfile_spec.rb @@ -1,13 +1,30 @@ require "spec_helper" -describe "bundle install with Gemfile" do - - it "will display a warning if a gem is duplicated" do - install_gemfile <<-G - gem 'rails', '~> 4.0.0' - gem 'rails', '~> 4.0.0' - G - expect(out).to include("more than once") +describe "bundle install" do + + context "with duplicated gems" do + it "will display a warning" do + install_gemfile <<-G + gem 'rails', '~> 4.0.0' + gem 'rails', '~> 4.0.0' + G + expect(out).to include("more than once") + end + end + + context "with deprecated features" do + before :each do + in_app_root + end + + it "reports that lib is an invalid option" do + gemfile <<-G + gem "rack", :lib => "rack" + G + + bundle :install + expect(out).to match(/You passed :lib as an option for gem 'rack', but it is invalid/) + end end end
\ No newline at end of file |