spec_views 0.1.1 → 1.0.0

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
  SHA256:
3
- metadata.gz: d044e56e8a631ad9236607bac60068c0f16cf2dedb4b50d0e620cdb791f41d47
4
- data.tar.gz: e105a711a300354b0aa8e5fdb994a54b749e29133da40e07b7f6cc1546565d52
3
+ metadata.gz: 8278245502dacbcd31ef70f86ff4662761b85145a0b266aab61cada76d7972fa
4
+ data.tar.gz: bcb0df09b2f54eb9fb46aa0cf8861dc3a3aee8af831c99bae385dd2328c3e620
5
5
  SHA512:
6
- metadata.gz: 8c0f148c34253684f1a4ab2a4e4f879ffd89dc3a06fc1a050d3efd2b8462fd245da8060adc181dfa18d31ae6f7239d7a54a9615424fad570a6b2fb1b761ad271
7
- data.tar.gz: aa83215d00e20dec8871b1a718dd2e5061c1c8675ef9a741ebad8108fa34d9ba24e0c5e598f4c62e37e19e54ebd72dab68d0353e7025241843f263c1fae49f51
6
+ metadata.gz: c3801ed87b71487132c9588021b1e169f00b2115b9f17f78eb61acae13d1141b7016bce76b5c7353ab393ad65f4a48405bbe57bc53cfef93c8cd790393757653
7
+ data.tar.gz: 9780e7d55922bd751e9bd3a30e62445b2b54757f00c5744d10146ec0ec5df2f06f88fcf07643f48d99c39615b1c78fd34a7dd466ddb06008b0953a00e4342fd3
data/README.md CHANGED
@@ -21,14 +21,14 @@ Add this line to your application's Gemfile:
21
21
  gem 'spec_views'
22
22
  ```
23
23
 
24
- And then execute:
25
- ```bash
26
- $ bundle
24
+ And this to RSpec's rails_helper.rb:
25
+ ```ruby
26
+ require 'spec_views/support'
27
27
  ```
28
28
 
29
- Or install it yourself as:
29
+ And then execute:
30
30
  ```bash
31
- $ gem install spec_views
31
+ $ bundle
32
32
  ```
33
33
 
34
34
  ## License
@@ -3,15 +3,5 @@ require 'spec_views/configuration'
3
3
  module SpecViews
4
4
  class Engine < ::Rails::Engine
5
5
  config.spec_views = Configuration.default
6
-
7
- initializer 'configure.rspec' do |app|
8
- if Rails.env.test? && Object.const_defined?('RSpec')
9
- require 'spec_views/support'
10
-
11
- RSpec.configure do |config|
12
- config.include Support
13
- end
14
- end
15
- end
16
6
  end
17
7
  end
@@ -179,4 +179,8 @@ module SpecViews
179
179
  end
180
180
  end
181
181
  end
182
- end
182
+ end
183
+
184
+ RSpec.configure do |rspec|
185
+ rspec.include SpecViews::Support, type: :controller
186
+ end
@@ -1,3 +1,3 @@
1
1
  module SpecViews
2
- VERSION = '0.1.1'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Gaul
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails