Sha256: c7c16dd2424f7176a2e5b9dfb35c9569c6a7a0780f73a100c3a0046c0dbb0ac0

Contents?: true

Size: 330 Bytes

Versions: 44

Compression:

Stored size: 330 Bytes

Contents

require "spec_helper"
require "bundler"
require "bundler/friendly_errors"

describe Bundler, "friendly errors" do
  it "rescues Thor::AmbiguousTaskError and raises SystemExit" do
    expect {
      Bundler.with_friendly_errors do
        raise Thor::AmbiguousTaskError.new("")
      end
    }.to raise_error(SystemExit)
  end
end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
bundler-1.7.15 spec/bundler/friendly_errors_spec.rb
bundler-1.7.14 spec/bundler/friendly_errors_spec.rb
bundler-1.7.13 spec/bundler/friendly_errors_spec.rb
bundler-1.7.12 spec/bundler/friendly_errors_spec.rb
bundler-1.7.11 spec/bundler/friendly_errors_spec.rb
bundler-1.7.10 spec/bundler/friendly_errors_spec.rb
bundler-1.7.9 spec/bundler/friendly_errors_spec.rb
bundler-1.7.8 spec/bundler/friendly_errors_spec.rb
bundler-1.7.7 spec/bundler/friendly_errors_spec.rb
bundler-1.7.6 spec/bundler/friendly_errors_spec.rb
bundler-1.6.9 spec/bundler/friendly_errors_spec.rb
bundler-1.7.5 spec/bundler/friendly_errors_spec.rb
bundler-1.6.8 spec/bundler/friendly_errors_spec.rb
bundler-1.7.4 spec/bundler/friendly_errors_spec.rb
bundler-1.6.7 spec/bundler/friendly_errors_spec.rb
bundler-1.7.3 spec/bundler/friendly_errors_spec.rb
bundler-1.6.6 spec/bundler/friendly_errors_spec.rb
bundler-1.7.2 spec/bundler/friendly_errors_spec.rb
bundler-1.7.1 spec/bundler/friendly_errors_spec.rb
bundler-1.7.1.pre.3 spec/bundler/friendly_errors_spec.rb