Skip to content

Commit

Permalink
Merge pull request #3 from bbc/code_coverage
Browse files Browse the repository at this point in the history
Code coverage addition
  • Loading branch information
Asimk21 authored Nov 2, 2016
2 parents 6c0f89e + 449d958 commit ba4ba1c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ language: ruby
rvm:
- 2.2
- jruby
- rbx-2
script: bundle exec rspec
addons:
code_climate:
repo_token:
secure: En4HMLkAsDxQ0mlUgjIZz4F4DOJ7G70Fj+H3sMcUwl26rNQh88U1zCesz/PfFtzO2Av4YX88cfAcXyTLhzasbpFX8pNt+7j1VVoVvZqlHzJ3KXOtJ7sucHRLmJtBky5RLNR3XDlSuHxtVTHg3qKfXdIKbX1nGCDmFfsXvXpyWxpkYIB/oyc1dwmGQOkYwj1a0T527M97GW9roeldbaaldn5FwsRJZxFCV3+g/e/DhZDOU7NKSWMP8Paa/hImV4/sB7jIA9FU2ZY6paiC3X6ePvu5b9O/iY9nv29rGVq4uQrbMQLS4Cb5pobdQNV9/5LCvkVDDDCasFfLTT9PeJ+8xdnvCtit85zawLFnVNmCDO6MrJFNTQOIvO1gojX52w68F1j24COBmt4z2GpE8aRCoNxj4kDGanFXr9cqLFXUbsvPED9j+34BLMlnPKRpTEywkTzWTlhCx1yHi5uQ06ntDTNcWJUJvFJpIimhKxHt+Ltbiem++KKW1Wo5rMKZ3TlP4In1Bk0awFJgKQ/W0j9UA5Wncww8DTD8gxyLKSx5xCBFJ0P8yypxG0obGHh0m3cqj429UDeh3T8AqQJbHcog+QTh/e7zsJEREZmgkfn2blbxH9MDgpgvjU/Cw2a0mJsSrLQJwOoTlsnKL3xodT9CuRittyDPa0yDMGcX/y0xa/M=
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source 'https://rubygems.org'

gem 'codeclimate-test-reporter', group: :test, require: nil

gemspec
10 changes: 3 additions & 7 deletions android-devices.gemspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
lib = File.expand_path('../lib', __FILE__)

$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'android/devices'

Gem::Specification.new do |spec|
spec.name = 'android-devices'
spec.version = Android::Devices::VERSION
spec.version = '1.0.1'
spec.authors = ['Jon Wilson']
spec.email = ['[email protected]']
spec.summary = %q{Human readable Android device names}
spec.license = 'MIT'
spec.homepage = 'https://github.com/bbc/android-devices'

spec.files = `git ls-files -z`.split("\x0")
spec.require_paths = ['lib']
Expand Down
1 change: 0 additions & 1 deletion lib/android/devices.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'android/devices/version'
require 'android/devices/model'
require 'csv'

Expand Down
5 changes: 0 additions & 5 deletions lib/android/devices/version.rb

This file was deleted.

5 changes: 4 additions & 1 deletion spec/android_devices_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'spec_helper'
require 'android/devices'

describe Android::Devices do
describe 'check' do

Expand Down Expand Up @@ -33,4 +36,4 @@
expect(Android::Devices.search_by_manufacturer('Samsung').count).to be(3)
end
end
end
end
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'codeclimate-test-reporter'

CodeClimate::TestReporter.start

$LOAD_PATH.unshift('./lib/')

0 comments on commit ba4ba1c

Please sign in to comment.