carlhuda/bundler — pull request #2108 by MafcoCinco (2012-09-24 15:56:11+00:00)
Title: Added RSpec test skeleton to gem command

#### Description

Added an option to `bundle gem` called `--test` which creates skeleton code for unit testing. Currently the only value `--test` accepts is `rspec` but it should be easy to add others if this is a feature that people want. RSpec was a selfish selection as it is the testing framework that I use.

I Included corresponding unit tests (all of which pass) in `spec/other/newgem_spec.rb`. I also added unit tests for the `--bin` option which seemed to be missing.

#### Usage

`bundle gem my_gem --test=rspec`