summaryrefslogtreecommitdiff
path: root/spec/bundler/cli_spec.rb
blob: ef4ec79656062c4d5efb67217f693c8c2b1f98b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'
require 'bundler/cli'

describe "bundle executable" do
  let(:source_uri) { "http://localgemserver.test" }

  it "returns non-zero exit status when passed unrecognized options" do
    bundle '--invalid_argument', :exitstatus => true
    expect(exitstatus).to_not be_zero
  end

  it "returns non-zero exit status when passed unrecognized task" do
    bundle 'unrecognized-tast', :exitstatus => true
    expect(exitstatus).to_not be_zero
  end
end