Skip to content

Commit d16526d

Browse files
committed
Initial commit
0 parents  commit d16526d

File tree

10 files changed

+178
-0
lines changed

10 files changed

+178
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.4.1

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: ruby
2+
3+
addons:
4+
code_climate:
5+
repo_token: 96471f09a463c372445abf82e8ed1926a7fc2a240b59a8e2364c884686656299
6+
# regular test configuration
7+
after_success:
8+
- bundle exec codeclimate-test-reporter

Gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'bundler'
4+
gem 'rspec'
5+
6+
group :test do
7+
gem 'codeclimate-test-reporter', '~> 1.0.0'
8+
gem 'rake'
9+
gem 'simplecov', require: false
10+
end

Gemfile.lock

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
codeclimate-test-reporter (1.0.7)
5+
simplecov
6+
diff-lcs (1.3)
7+
docile (1.1.5)
8+
json (2.1.0)
9+
rake (12.0.0)
10+
rspec (3.6.0)
11+
rspec-core (~> 3.6.0)
12+
rspec-expectations (~> 3.6.0)
13+
rspec-mocks (~> 3.6.0)
14+
rspec-core (3.6.0)
15+
rspec-support (~> 3.6.0)
16+
rspec-expectations (3.6.0)
17+
diff-lcs (>= 1.2.0, < 2.0)
18+
rspec-support (~> 3.6.0)
19+
rspec-mocks (3.6.0)
20+
diff-lcs (>= 1.2.0, < 2.0)
21+
rspec-support (~> 3.6.0)
22+
rspec-support (3.6.0)
23+
simplecov (0.15.0)
24+
docile (~> 1.1.0)
25+
json (>= 1.8, < 3)
26+
simplecov-html (~> 0.10.0)
27+
simplecov-html (0.10.2)
28+
29+
PLATFORMS
30+
ruby
31+
32+
DEPENDENCIES
33+
bundler
34+
codeclimate-test-reporter (~> 1.0.0)
35+
rake
36+
rspec
37+
simplecov
38+
39+
BUNDLED WITH
40+
1.15.4

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ruby Invoice
2+
[![Build Status](https://travis-ci.org/SelenaSmall/ruby_invoice.png)](https://travis-ci.org/SelenaSmall/ruby_invoice)
3+
[![Code Climate](https://codeclimate.com/github/SelenaSmall/ruby_invoice/badges/gpa.svg)](https://codeclimate.com/github/SelenaSmall/ruby_invoice)
4+
[![Test Coverage](https://codeclimate.com/github/SelenaSmall/ruby_invoice/coverage.svg)](https://codeclimate.com/github/SelenaSmall/ruby_invoice/coverage)
5+

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
task default: [:spec]
2+
desc 'run Rspec specs'
3+
4+
task :spec do
5+
sh 'rspec spec'
6+
end

app.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/ruby
2+
3+
# Entry point

spec/spec_helper.rb

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
require 'simplecov'
2+
SimpleCov.start
3+
4+
# This file was generated by the `rspec --init` command. Conventionally, all
5+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
6+
# The generated `.rspec` file contains `--require spec_helper` which will cause
7+
# this file to always be loaded, without a need to explicitly require it in any
8+
# files.
9+
#
10+
# Given that it is always loaded, you are encouraged to keep this file as
11+
# light-weight as possible. Requiring heavyweight dependencies from this file
12+
# will add to the boot time of your test suite on EVERY test run, even for an
13+
# individual file that may not need all of that loaded. Instead, consider making
14+
# a separate helper file that requires the additional dependencies and performs
15+
# the additional setup, and require it from the spec files that actually need
16+
# it.
17+
#
18+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19+
RSpec.configure do |config|
20+
# rspec-expectations config goes here. You can use an alternate
21+
# assertion/expectation library such as wrong or the stdlib/minitest
22+
# assertions if you prefer.
23+
config.expect_with :rspec do |expectations|
24+
# This option will default to `true` in RSpec 4. It makes the `description`
25+
# and `failure_message` of custom matchers include text for helper methods
26+
# defined using `chain`, e.g.:
27+
# be_bigger_than(2).and_smaller_than(4).description
28+
# # => "be bigger than 2 and smaller than 4"
29+
# ...rather than:
30+
# # => "be bigger than 2"
31+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32+
end
33+
34+
# rspec-mocks config goes here. You can use an alternate test double
35+
# library (such as bogus or mocha) by changing the `mock_with` option here.
36+
config.mock_with :rspec do |mocks|
37+
# Prevents you from mocking or stubbing a method that does not exist on
38+
# a real object. This is generally recommended, and will default to
39+
# `true` in RSpec 4.
40+
mocks.verify_partial_doubles = true
41+
end
42+
43+
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
44+
# have no way to turn it off -- the option exists only for backwards
45+
# compatibility in RSpec 3). It causes shared context metadata to be
46+
# inherited by the metadata hash of host groups and examples, rather than
47+
# triggering implicit auto-inclusion in groups with matching metadata.
48+
config.shared_context_metadata_behavior = :apply_to_host_groups
49+
50+
# The settings below are suggested to provide a good initial experience
51+
# with RSpec, but feel free to customize to your heart's content.
52+
=begin
53+
# This allows you to limit a spec run to individual examples or groups
54+
# you care about by tagging them with `:focus` metadata. When nothing
55+
# is tagged with `:focus`, all examples get run. RSpec also provides
56+
# aliases for `it`, `describe`, and `context` that include `:focus`
57+
# metadata: `fit`, `fdescribe` and `fcontext`, respectively.
58+
config.filter_run_when_matching :focus
59+
60+
# Allows RSpec to persist some state between runs in order to support
61+
# the `--only-failures` and `--next-failure` CLI options. We recommend
62+
# you configure your source control system to ignore this file.
63+
config.example_status_persistence_file_path = "spec/examples.txt"
64+
65+
# Limits the available syntax to the non-monkey patched syntax that is
66+
# recommended. For more details, see:
67+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
68+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
69+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
70+
config.disable_monkey_patching!
71+
72+
# This setting enables warnings. It's recommended, but in some cases may
73+
# be too noisy due to issues in dependencies.
74+
config.warnings = true
75+
76+
# Many RSpec users commonly either run the entire suite or an individual
77+
# file, and it's useful to allow more verbose output when running an
78+
# individual spec file.
79+
if config.files_to_run.one?
80+
# Use the documentation formatter for detailed output,
81+
# unless a formatter has already been configured
82+
# (e.g. via a command-line flag).
83+
config.default_formatter = "doc"
84+
end
85+
86+
# Print the 10 slowest examples and example groups at the
87+
# end of the spec run, to help surface which specs are running
88+
# particularly slow.
89+
config.profile_examples = 10
90+
91+
# Run specs in random order to surface order dependencies. If you find an
92+
# order dependency and want to debug it, you can fix the order by providing
93+
# the seed, which is printed after each run.
94+
# --seed 1234
95+
config.order = :random
96+
97+
# Seed global randomization in this process using the `--seed` CLI option.
98+
# Setting this allows you to use `--seed` to deterministically reproduce
99+
# test failures related to randomization by passing the same `--seed` value
100+
# as the one that triggered the failure.
101+
Kernel.srand config.seed
102+
=end
103+
end

0 commit comments

Comments
 (0)