Skip to content

Commit

Permalink
added simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
minhajuddin committed Jul 13, 2011
1 parent 61af1f1 commit 97f3610
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ db/*.sqlite3
log/*.log
tmp/
.sass-cache/
coverage/
3 changes: 3 additions & 0 deletions .metrics
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MetricFu::Configuration.run do |config|
config.metrics -= [:rcov]
end
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ end
group :development, :test do
gem 'spork', '>=0.9.0.rc8'
gem 'rspec-rails', '~> 2.6'
gem 'guard'
gem 'guard-rspec'
gem 'guard-livereload'
gem 'guard-spork'
Expand All @@ -62,6 +63,8 @@ group :test do
gem 'database_cleaner'
gem 'mongoid-rspec'
gem 'mocha'

gem 'simplecov', :require => false
end


Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ GEM
simple_form (1.4.2)
actionpack (~> 3.0)
activemodel (~> 3.0)
simplecov (0.4.2)
simplecov-html (~> 0.4.4)
simplecov-html (0.4.5)
spork (0.9.0.rc9)
sprockets (2.0.0.beta.10)
hike (~> 1.0)
Expand Down Expand Up @@ -231,6 +234,7 @@ DEPENDENCIES
devise
factory_girl_rails
faker
guard
guard-livereload
guard-rspec
guard-spork
Expand All @@ -251,6 +255,7 @@ DEPENDENCIES
ruby-debug19
sass-rails (~> 3.1.0.rc)
simple_form
simplecov
spork (>= 0.9.0.rc8)
state_machine
thin
Expand Down
19 changes: 1 addition & 18 deletions spec/controllers/issues_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
require 'spec_helper'

# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold
# generator. If you are using any extension libraries to generate different
# controller code, this generated spec may or may not pass.
#
# It only uses APIs available in rails and/or rspec-rails. There are a number
# of tools you can use to make these specs even more expressive, but we're
# sticking to rails and rspec-rails APIs to keep things simple and stable.
#
# Compared to earlier versions of this generator, there is very limited use of
# stubs and message expectations in this spec. Stubs are only used when there
# is no simpler way to get a handle on the object needed for the example.
# Message expectations are only used when there is no simpler way to specify
# that an instance is receiving a specific message.

describe IssuesController do
render_views

# This should return the minimal set of attributes required to create a valid
# Issue. As you add validations to Issue, be sure to
Expand Down
2 changes: 1 addition & 1 deletion spec/models/user_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'spec_helper'

describe User do
pending "add some examples to (or delete) #{__FILE__}"
#pending "add some examples to (or delete) #{__FILE__}"
end
7 changes: 5 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'simplecov'
SimpleCov.start

require 'rubygems'
require 'spork'

Expand Down Expand Up @@ -46,8 +49,8 @@

Spork.each_run do
# This code will be run each time you run your specs.
Factory.factories.clear
load Rails.root.join 'spec/factories.rb'
#Factory.factories.clear
#load Rails.root.join 'spec/factories.rb'
end

# --- Instructions ---
Expand Down

0 comments on commit 97f3610

Please sign in to comment.