It is a playground for us to test Moped, which is a MongoDB driver for Ruby.
-
Initilize project structure for gem (
bundle gem moped_test) -
Install rspec gem ('gem install rspec') also update Gemfile
-
Initilize project with rspec support (
rspec --init) -
Add Guard, Growl and growlnotify into Gemfile
group :development, :test do gem 'guard-rspec' end group :test do gem 'rb-fsevent' gem 'growl' end -
Initialize Guard to work with Rspec (
bundle exec guard init rspec) -
Modify Guardfile to ensure Guard doesn't run all the tests after a failing test passes
guard 'rspec', :version => 2, :all_after_pass => false do -
Add Spork into Gemfile to speed up tests
group :development, :test do gem 'guard-spork' gem 'spork' end -
Bootstrap the Spork configration (
bundle exec spork --bootstrap) -
Modify the Spork corresponding files: spec/spec_helper.rb, .rspec
.rspec
--color --drb -
Make Guard works with Spork (
bundle exec guard init spork)
Guardfile
guard 'rspec', :version => 2, :all_after_pass => false, :cli => '--drb' do
Add this line to your application's Gemfile:
gem 'moped_test'
And then execute:
$ bundle
Or install it yourself as:
$ gem install moped_test
TODO: Write usage instructions here
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request