onotole 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 347ed886621839e4b9513a098ad0e714ce093001
4
- data.tar.gz: 66e989431ad3fcf0fbf22e3a9ce5e2f3474ccec0
3
+ metadata.gz: 1903611a6ac8fc546d2dd0096648355bac2c5612
4
+ data.tar.gz: 342953bf85c91dc761edf66ae248b4d8b9fac660
5
5
  SHA512:
6
- metadata.gz: 196aee08a5cde6f7c1c4e1e8a21d7faaf53e5020144a5fff2f3c454ec39c1535563777f9e020936b2489320a23b569e1fc749ad9c2d20122601307b217f66ff7
7
- data.tar.gz: 0f8da2e90c62309311b7cf97b4cefec78705a435c60032e8aee8bb9e84e26d4d532b435dc00db99ae556bbec36d0c56c87215d54850e55b404edb520d9d2b29a
6
+ metadata.gz: 51a9e4ee9915a2e2eac232c131414f133a4beb18d0068455f8924b081dda7e506f31a19f0265c4c7ae2e9cfa01117fe7f16d00db5087cb1b8c2859f867b51764
7
+ data.tar.gz: 880b24c2a5b710f32bdf04d3b467e56980d9691abb7af2bcdf49aef7d2f49c4928c97523ad097fd49f6f3344d3f4a7f255a668eced603c5201008030dfd456b3
data/README.md CHANGED
@@ -314,6 +314,9 @@ selected for pretty view from the box
314
314
  * Added autoload fonts from `app/assets/fonts/**/*`
315
315
  * Patch for no error work, if `Mailcatcher` is not loaded. In this case
316
316
  `delivery_method = :file`. It checks on the `rails server` starts.
317
+ * No need to add `rails_helper` or `spec_helper` in specs.
318
+ * In `.env` just switch on `#{app_name}_COVERAGE` to true and get your test
319
+ coverage.
317
320
 
318
321
  ## Heroku
319
322
 
@@ -2,5 +2,5 @@
2
2
  module Onotole
3
3
  RAILS_VERSION = '~> 4.2.0'
4
4
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
5
- VERSION = '1.1.12'
5
+ VERSION = '1.1.13'
6
6
  end
@@ -1,3 +1,3 @@
1
1
  --format Fuubar
2
- --require spec_helper
2
+ --require rails_helper
3
3
  --color
@@ -5,6 +5,7 @@ require File.expand_path('../../config/environment', __FILE__)
5
5
  abort('DATABASE_URL environment variable is set') if ENV['DATABASE_URL']
6
6
 
7
7
  require 'rspec/rails'
8
+ require 'spec_helper'
8
9
 
9
10
  Dir[Rails.root.join('spec/support/**/*.rb')].sort.each { |file| require file }
10
11
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- if ENV.fetch("#{app_name.upcase}_COVERAGE", false)
2
+ if ENV.fetch("#{Rails.application.class.parent_name}_COVERAGE", false)
3
3
  require 'simplecov'
4
4
 
5
5
  if ENV["CIRCLE_ARTIFACTS"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onotole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - kvokka