Skip to content

Commit

Permalink
merging coverage results w/ coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
EppO committed Jun 27, 2013
1 parent 528f4dd commit 34c56d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
require 'bundler'
require 'rspec/core/rake_task'
require 'coveralls/rake/task'

Bundler::GemHelper.install_tasks

Coveralls::RakeTask.new

RSpec::Core::RakeTask.new(:generators) do |task|
task.pattern = "spec/generators/**/*_spec.rb"
end
Expand All @@ -11,7 +14,7 @@ RSpec::Core::RakeTask.new(:rolify) do |task|
task.pattern = "spec/rolify/**/*_spec.rb"
end

task :default => :spec
task :default => [ :spec, 'coveralls:push' ]

desc "Run all specs"
task "spec" do
Expand Down
2 changes: 1 addition & 1 deletion spec/generators_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require 'rails/all'

require 'coveralls'
Coveralls.wear!
Coveralls.wear_merged!

module TestApp
class Application < ::Rails::Application
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require 'rails/all'

require 'coveralls'
Coveralls.wear!
Coveralls.wear_merged!

ENV['ADAPTER'] ||= 'active_record'

Expand Down

0 comments on commit 34c56d7

Please sign in to comment.