Sha256: 248e35cf4407aed0ea4659a2cccf99e7d754f472761a8e7f8369d8580c8b3372

Contents?: true

Size: 1.04 KB

Versions: 14

Compression:

Stored size: 1.04 KB

Contents

require "spec_helper"

describe "bundle help" do
  it "complains if older versions of bundler are installed" do
    system_gems "bundler-0.8.1"

    bundle "help", :expect_err => true
    err.should == "Please remove older versions of bundler. This can be done by running `gem cleanup bundler`."
  end

  it "uses groff when available" do
    fake_groff!

    bundle "help gemfile"
    out.should == %|["-Wall", "-mtty-char", "-mandoc", "-Tascii", "#{root}/lib/bundler/man/gemfile.5"]|
  end

  it "prefixes bundle commands with bundle- when finding the groff files" do
    fake_groff!

    bundle "help install"
    out.should == %|["-Wall", "-mtty-char", "-mandoc", "-Tascii", "#{root}/lib/bundler/man/bundle-install"]|
  end

  it "simply outputs the txt file when there is no groff on the path" do
    kill_path!

    bundle "help install"
    out.should =~ /BUNDLE-INSTALL/
  end

  it "still outputs the old help for commands that do not have man pages yet" do
    bundle "help check"
    out.should include("Check searches the local machine")
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
honkster-bundler-1.1.pre spec/other/help_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb
bundler-1.0.3 spec/other/help_spec.rb
bundler-1.0.2 spec/other/help_spec.rb