focused_controller 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a2722ee476e3663d6aefafa80c3fc63d9159eed
|
4
|
+
data.tar.gz: 1b2f9fbe3d7c50175b61e6e7cf84a327e82d722f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf8441ca6ad2c426ec53ff72aed2878f674d7550faf80096b48f6fc4634121912b415340e2c10f120e7e9b8d3e169c4435ae3dc210d5bcad4361535688223288
|
7
|
+
data.tar.gz: 98818933532d086d5cf9cc0bfaba20a3c3f74e27334d56de2fb4531544faf1dda7cec2dd189bce9d2f7fdff008f1c996b26f25bb18fea0e96dd96a980383a157
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,20 @@
|
|
1
|
+
require "rspec/version"
|
2
|
+
|
1
3
|
module FocusedController
|
2
4
|
module RSpecControllerClass
|
3
5
|
def controller_class
|
4
|
-
metadata = self.metadata
|
6
|
+
metadata = self.metadata
|
7
|
+
metadata = metadata[:example_group] if RSpec::Version::STRING < "3"
|
5
8
|
klass = nil
|
6
9
|
|
7
10
|
until metadata.nil? || klass.respond_to?(:new)
|
8
11
|
klass = metadata[:description_args].first
|
9
|
-
|
12
|
+
|
13
|
+
if RSpec::Version::STRING < "3"
|
14
|
+
metadata = metadata[:example_group]
|
15
|
+
else
|
16
|
+
metadata = metadata[:parent_example_group]
|
17
|
+
end
|
10
18
|
end
|
11
19
|
|
12
20
|
klass.respond_to?(:new) ? klass : super
|
data/test/helper.rb
CHANGED
@@ -24,6 +24,8 @@ end
|
|
24
24
|
require "rspec/core"
|
25
25
|
RSpec.configure do |config|
|
26
26
|
config.expose_dsl_globally = false
|
27
|
+
config.raise_errors_for_deprecations!
|
28
|
+
config.expect_with(:rspec) { |c| c.syntax = :should }
|
27
29
|
end
|
28
30
|
[singleton_class, Module].each do |mod|
|
29
31
|
mod.class_eval { alias describe minitest_describe }
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: focused_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Leighton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -218,7 +218,7 @@ files:
|
|
218
218
|
- test/unit/functional_test_helper_test.rb
|
219
219
|
- test/unit/mixin_test.rb
|
220
220
|
- test/unit/route_mapper_test.rb
|
221
|
-
- test/unit/
|
221
|
+
- test/unit/rspec_functional_helper_test.rb
|
222
222
|
- test/unit/rspec_helper_test.rb
|
223
223
|
- test/unit/test_helper_test.rb
|
224
224
|
homepage: http://github.com/jonleighton/focused_controller
|
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
240
|
version: '0'
|
241
241
|
requirements: []
|
242
242
|
rubyforge_project: focused_controller
|
243
|
-
rubygems_version: 2.
|
243
|
+
rubygems_version: 2.5.1
|
244
244
|
signing_key:
|
245
245
|
specification_version: 4
|
246
246
|
summary: Write Rails controllers with one class per action
|
@@ -307,6 +307,6 @@ test_files:
|
|
307
307
|
- test/unit/functional_test_helper_test.rb
|
308
308
|
- test/unit/mixin_test.rb
|
309
309
|
- test/unit/route_mapper_test.rb
|
310
|
-
- test/unit/
|
310
|
+
- test/unit/rspec_functional_helper_test.rb
|
311
311
|
- test/unit/rspec_helper_test.rb
|
312
312
|
- test/unit/test_helper_test.rb
|