Skip to content

Commit b30153f

Browse files
committed
Backport skipping of a spec due to Rails bug
Update to the latest released 5.2.4.3 didn't help. Backported from https://github.com/rspec/rspec-rails/blob/c0a8c22186a1232e3b1612c44bc88052ec56c945/spec/rspec/rails/example/view_example_group_spec.rb#L239
1 parent 3ea0658 commit b30153f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

spec/rspec/rails/example/view_example_group_spec.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,18 @@ def controller
218218
expect(view_spec.view).to eq(view)
219219
end
220220

221-
it 'is accessible to hooks' do
221+
if RUBY_VERSION <= "2.3.0" && ENV["RAILS_VERSION"] !~ /stable/ && ::Rails.version.to_f == 5.2
222+
pending_only_on_ruby_22_rails_52 = """
223+
Rails 5.2.4.2 has a syntax error in ActionDispatch::Request::Session.
224+
(A &. usage which does not work in 2.2.10)
225+
It has been fixed but not released, this spec will not pass until that
226+
has been released.
227+
"""
228+
else
229+
pending_only_on_ruby_22_rails_52 = false
230+
end
231+
232+
it 'is accessible to hooks', :pending => pending_only_on_ruby_22_rails_52 do
222233
group = RSpec::Core::ExampleGroup.describe 'a view', :type => :view do
223234
specify { true }
224235
end

0 commit comments

Comments
 (0)