Skip to content

Commit

Permalink
add coverall
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Apr 29, 2013
1 parent 478f779 commit ace4800
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,3 +10,4 @@ tags
benchmark_profile*
/nbproject/private/
Gemfile*.lock
coverage/
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -13,3 +13,5 @@ gem 'mongoid', '3.0.9'
gem "rspec"
gem "guard"
gem "guard-rspec"

gem 'coveralls', require: false
2 changes: 1 addition & 1 deletion README.md
@@ -1,8 +1,8 @@
# Bullet

[![Build Status](https://secure.travis-ci.org/flyerhzm/bullet.png)](http://travis-ci.org/flyerhzm/bullet)

[![Coderwall Endorse](http://api.coderwall.com/flyerhzm/endorsecount.png)](http://coderwall.com/flyerhzm)
[![Coverage Status](https://coveralls.io/repos/flyerhzm/bullet/badge.png?branch=master)](https://coveralls.io/r/flyerhzm/bullet)

The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries), when you're using eager loading that isn't necessary and when you should use counter cache.

Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -19,6 +19,9 @@ def root
SUPPORT = File.join(File.dirname(__FILE__), "support")
Dir[ File.join(SUPPORT, "*.rb") ].reject { |filename| filename =~ /_seed.rb$/ }.sort.each { |file| require file }

require 'coveralls'
Coveralls.wear!

RSpec.configure do |config|
config.extend Bullet::Dependency

Expand Down

0 comments on commit ace4800

Please sign in to comment.