From c61d86c1a8eec9bc7144465f817657c963b8cd44 Mon Sep 17 00:00:00 2001 From: Endoze Date: Sun, 16 Jun 2013 16:47:39 -0400 Subject: [PATCH 1/2] Add coveralls to gemfile and test helper This commit adds coveralls to the gemfile and the test helper. --- Gemfile | 2 ++ test/helper.rb | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 8816692..d6bd256 100644 --- a/Gemfile +++ b/Gemfile @@ -11,3 +11,5 @@ group :development do gem "simplecov" gem "jeweler" end + +gem 'coveralls', require: false diff --git a/test/helper.rb b/test/helper.rb index 06aac99..5f39a98 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,3 +1,6 @@ +require 'coveralls' +Coveralls.wear! + require 'simplecov' SimpleCov.start @@ -11,14 +14,14 @@ class Test::Unit::TestCase TEST_USER_TOKEN = "b9aaf2581480432a939a72f894bf".freeze - + def fixture(file) path = File.expand_path("../fixtures", __FILE__) File.new(path + '/' + file) end - + def json_fixture(file) file = fixture(file) - JSON.load(file) + JSON.load(file) end end From 7811fb63e88665fd86af7f06a354fbe53d6178bd Mon Sep 17 00:00:00 2001 From: Endoze Date: Sun, 16 Jun 2013 16:48:40 -0400 Subject: [PATCH 2/2] Add coveralls badge This commit adds the coveralls badge to the README.rdoc --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index d2025fc..459392b 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,8 +1,8 @@ = health_graph {}[https://travis-ci.org/endoze/health_graph] - {Dependency Status}[https://gemnasium.com/endoze/health_graph] +{Coverage Status}[https://coveralls.io/r/endoze/health_graph] Ruby gem to work with RunKeeper Health Graph API. More information about RunKeeper Health Graph API http://developer.runkeeper.com/healthgraph.