Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coveralls #7

Merged
merged 2 commits into from
Jun 16, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ group :development do
gem "simplecov"
gem "jeweler"
end

gem 'coveralls', require: false
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
= health_graph

{<img src="https://travis-ci.org/endoze/health_graph.png?branch=master" />}[https://travis-ci.org/endoze/health_graph]

{<img src="https://gemnasium.com/endoze/health_graph.png" alt="Dependency Status" />}[https://gemnasium.com/endoze/health_graph]
{<img src="https://coveralls.io/repos/endoze/health_graph/badge.png" alt="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.

Expand Down
9 changes: 6 additions & 3 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'coveralls'
Coveralls.wear!

require 'simplecov'
SimpleCov.start

Expand All @@ -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