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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01a00f10eee52408429aac920152745edbb5fbe6
4
- data.tar.gz: 9f0fb99df0c8eb32b823dff0496dca286bd2a36a
3
+ metadata.gz: aa6905ee669f36f41244f83b7426e1ff97bcb1de
4
+ data.tar.gz: e2cc8c291f5f3fcc774dd359c4c95b57cd2e93b0
5
5
  SHA512:
6
- metadata.gz: ebc16491b83addf8ada3e9ea5f030da43bf01e6bb39c6d1a5920f0c4acbc2f482fa55dd8c23c16b4f2419d5d74e1005cfc1c5b44ff5cda7dcd8584dfe610d1fa
7
- data.tar.gz: 1648b996f98c9232dee112034ae12e569a9105cccb30dca95140727d5b8f0df4c8fd5945592fc0a5608cfa128f4e195568010a43874737250689ee55b6862ed1
6
+ metadata.gz: 1794d7b01a0002fe3a0d7cfaca431c8531b55711877a2632cd8519133693720df812441596adc9df67086d19d5f2cd18b21782bbdbeb894680f01fbcecdbe451
7
+ data.tar.gz: 5617115310be7d1497628366f2835febc2eb1568f34e7a29751a9dede5156b7c387bf7b55a9d036e4dc6a2c80bfa0aeec5673cea5f4ea10424614cc046acb76c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
 
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Rails.
4
4
  module Version
5
5
  # Current version of RSpec Rails, in semantic versioning format.
6
- STRING = '3.4.0'
6
+ STRING = '3.4.1'
7
7
  end
8
8
  end
9
9
  end
@@ -43,15 +43,11 @@ module RSpec
43
43
  # with modified source
44
44
  #
45
45
  # @private
46
- class EmptyTemplatePathSetDecorator < ::ActionView::Resolver
47
- attr_reader :original_path_set
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 find_all(*args)
54
- original_path_set.find_all(*args).map do |template|
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
- EmptyTemplatePathSetDecorator.new(ActionView::PathSet.new(Array.wrap(path)))
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
- @_empty_view_path_set_delegator = EmptyTemplatePathSetDecorator.new(controller.class.view_paths)
96
- controller.class.view_paths = ::ActionView::PathSet.new.push(@_empty_view_path_set_delegator)
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.0
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: 2015-11-12 00:00:00.000000000 Z
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.2.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