rspec-rails 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +9 -0
- data/lib/rspec/rails/version.rb +1 -1
- data/lib/rspec/rails/view_rendering.rb +13 -14
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa6905ee669f36f41244f83b7426e1ff97bcb1de
|
4
|
+
data.tar.gz: e2cc8c291f5f3fcc774dd359c4c95b57cd2e93b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1794d7b01a0002fe3a0d7cfaca431c8531b55711877a2632cd8519133693720df812441596adc9df67086d19d5f2cd18b21782bbdbeb894680f01fbcecdbe451
|
7
|
+
data.tar.gz: 5617115310be7d1497628366f2835febc2eb1568f34e7a29751a9dede5156b7c387bf7b55a9d036e4dc6a2c80bfa0aeec5673cea5f4ea10424614cc046acb76c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
### 3.4.1 / 2016-01-25
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix no method error when rendering templates with explicit `:file`
|
7
|
+
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, #1535)
|
8
|
+
|
9
|
+
|
1
10
|
### 3.4.0 / 2015-11-11
|
2
11
|
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
|
3
12
|
|
data/lib/rspec/rails/version.rb
CHANGED
@@ -43,15 +43,11 @@ module RSpec
|
|
43
43
|
# with modified source
|
44
44
|
#
|
45
45
|
# @private
|
46
|
-
class
|
47
|
-
|
48
|
-
|
49
|
-
def initialize(original_path_set)
|
50
|
-
@original_path_set = original_path_set
|
51
|
-
end
|
46
|
+
class EmptyTemplateResolver < ::ActionView::FileSystemResolver
|
47
|
+
private
|
52
48
|
|
53
|
-
def
|
54
|
-
|
49
|
+
def find_templates(*args)
|
50
|
+
super.map do |template|
|
55
51
|
::ActionView::Template.new(
|
56
52
|
"",
|
57
53
|
template.identifier,
|
@@ -85,23 +81,26 @@ module RSpec
|
|
85
81
|
private
|
86
82
|
|
87
83
|
def _path_decorator(path)
|
88
|
-
|
84
|
+
EmptyTemplateResolver.new(path)
|
89
85
|
end
|
90
86
|
end
|
91
87
|
|
92
88
|
included do
|
93
89
|
before do
|
94
90
|
unless render_views?
|
95
|
-
@
|
96
|
-
|
91
|
+
@_original_path_set = controller.class.view_paths
|
92
|
+
|
93
|
+
empty_template_path_set = @_original_path_set.map do |resolver|
|
94
|
+
EmptyTemplateResolver.new(resolver.to_s)
|
95
|
+
end
|
96
|
+
|
97
|
+
controller.class.view_paths = empty_template_path_set
|
97
98
|
controller.extend(EmptyTemplates)
|
98
99
|
end
|
99
100
|
end
|
100
101
|
|
101
102
|
after do
|
102
|
-
unless render_views?
|
103
|
-
controller.class.view_paths = @_empty_view_path_set_delegator.original_path_set
|
104
|
-
end
|
103
|
+
controller.class.view_paths = @_original_path_set unless render_views?
|
105
104
|
end
|
106
105
|
end
|
107
106
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
45
45
|
F3MdtaDehhjC
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date:
|
47
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: activesupport
|
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
321
|
rubyforge_project:
|
322
|
-
rubygems_version: 2.
|
322
|
+
rubygems_version: 2.4.5.1
|
323
323
|
signing_key:
|
324
324
|
specification_version: 4
|
325
325
|
summary: RSpec for Rails
|
metadata.gz.sig
CHANGED
Binary file
|