Skip to content

Instantly share code, notes, and snippets.

@dannguyen
Last active December 20, 2015 18:38
Show Gist options
  • Save dannguyen/6177077 to your computer and use it in GitHub Desktop.
Save dannguyen/6177077 to your computer and use it in GitHub Desktop.
Things for newly made gems to be incorporated later
#### spec/spec_helper.rb
RSpec.configure do |config|
# Use color in STDOUT
config.color_enabled = true
# Use color not only in STDOUT but also in pagers and files
config.tty = true
# Use the specified formatter
config.formatter = :documentation # :progress, :html, :textmate
config.before(:each) do
DatabaseCleaner.start
end
config.after(:each) do
DatabaseCleaner.clean
end
end
#### Gemfile
source "http://rubygems.org"
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "rspec", "~> 2.8.0"
gem "rdoc", "~> 3.12"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.8.4"
gem "rcov", ">= 0"
gem 'database_cleaner'
gem "pry"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment