Skip to content

Instantly share code, notes, and snippets.

@vladshablinsky
Last active March 8, 2016 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladshablinsky/9e933e9ed9082c3f808b to your computer and use it in GitHub Desktop.
Save vladshablinsky/9e933e9ed9082c3f808b to your computer and use it in GitHub Desktop.
bundle_help_test_fail

➜ vlad:bundler$ sw_vers                                                                                                                master
ProductName:	Mac OS X
ProductVersion:	10.10.5
BuildVersion:	14F27
➜ vlad:bundler$ ruby -v                                                                                                                master
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
➜ vlad:bundler$ rvm -v                                                                                                                 master
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
➜ vlad:bundler$ dbundle -v                                                                                                             master
Bundler version 1.12.0.pre.2
➜ vlad:bundler$ gem -v                                                                                                                 master
2.5.1
➜ vlad:bundler$ gem env                                                                                                                master
RubyGems Environment:
  - RUBYGEMS VERSION: 2.5.1
  - RUBY VERSION: 2.3.0 (2015-12-25 patchlevel 0) [x86_64-darwin14]
  - INSTALLATION DIRECTORY: /Users/vlad/.rvm/gems/ruby-2.3.0
  - USER INSTALLATION DIRECTORY: /Users/vlad/.gem/ruby/2.3.0
  - RUBY EXECUTABLE: /Users/vlad/.rvm/rubies/ruby-2.3.0/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/vlad/.rvm/gems/ruby-2.3.0/bin
  - SPEC CACHE DIRECTORY: /Users/vlad/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/vlad/.rvm/rubies/ruby-2.3.0/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-14
  - GEM PATHS:
     - /Users/vlad/.rvm/gems/ruby-2.3.0
     - /Users/vlad/.rvm/gems/ruby-2.3.0@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/vlad/.rvm/gems/ruby-2.3.0/bin
     - /Users/vlad/.rvm/gems/ruby-2.3.0@global/bin
     - /Users/vlad/.rvm/rubies/ruby-2.3.0/bin
     - /Users/vlad/.rvm/bin
     - /Users/vlad/google-cloud-sdk/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /usr/texbin
     - /Users/vlad/google-cloud-sdk/bin
     - /usr/local/bin
     - /usr/local/sbin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /usr/texbin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /usr/texbin
➜ vlad:bundler$ gem list rubygems-bundler                                                                                              master

*** LOCAL GEMS ***

rubygems-bundler (1.4.4)

bin/rspec spec/commands/help_spec.rb output

➜ vlad:bundler$ bin/rspec spec/commands/help_spec.rb                   master ✗
Run options:
  include {:focused=>true}
  exclude {:rubygems_master=>true, :rubygems=>"=< 2.5.1", :ruby=>"=< 2.3.0", :realworld=>true, :sudo=>true}

All examples were filtered out; ignoring {:focused=>true}

bundle help
  uses mann when available
  prefixes bundle commands with bundle- when finding the groff files

  simply outputs the txt file when there is no man on the path (FAILED - 1)
  still outputs the old help for commands that do not have man pages yet
  looks for a binary and executes it with --help option if it's named bundler-<task>
  is called when the --help flag is used after the command
  is called when the --help flag is used before the command
  is called when the -h flag is used before the command
  is called when the -h flag is used after the command
  has helpful output when using --help flag for a non-existent command


Retried examples: 0

Failures:

  1) bundle help simply outputs the txt file when there is no man on the path
     Failure/Error: expect(out).to match(/BUNDLE-INSTALL/)

       expected "" to match /BUNDLE-INSTALL/
       Diff:
       @@ -1,2 +1,2 @@
       -/BUNDLE-INSTALL/
       +""

     # ./spec/commands/help_spec.rb:33:in `block (2 levels) in <top (required)>'

Finished in 3.13 seconds (files took 0.34352 seconds to load)
10 examples, 1 failure

Failed examples:

rspec ./spec/commands/help_spec.rb:29 # bundle help simply outputs the txt file when there is no man on the path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment