Skip to content

Commit

Permalink
install simplecov and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
i2bskn committed Sep 11, 2013
1 parent 388aef6 commit 9dd68f2
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: GLVOxmX7c87TUUYnsfPdh1JcvxwjSlFjP
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in jancode.gemspec
gemspec

group :test do
gem 'coveralls', require: false
gem 'simplecov', require: false
end
Empty file removed spec/jancode/.gitkeep
Empty file.
8 changes: 8 additions & 0 deletions spec/jancode/gtin13_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require "spec_helper"

describe Jancode::GTIN13 do
it "create GTIN13 code" do
jancode = Jancode::GTIN13.new("456995111", "617")
expect(jancode.create).to eq("4569951116179")
end
end
19 changes: 19 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require "simplecov"
require "coveralls"
Coveralls.wear!

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
add_filter "spec"
add_filter ".bundle"
end

require "jancode"

RSpec.configure do |config|
config.order = "random"
end

0 comments on commit 9dd68f2

Please sign in to comment.