Skip to content

Commit fdcd1df

Browse files
authored
Merge pull request #2524 from rspec/revive-rails5.2-build-on-ruby-2.2
Disallow failures for passing builds
2 parents 969a5b2 + 72fc8aa commit fdcd1df

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828

2929
# Rails 6.1 builds >= 2.5
3030
- ruby: 3.0
31-
allow_failure: true
3231
env:
3332
RAILS_VERSION: '~> 6.1.0'
3433
- ruby: 2.7
@@ -68,7 +67,6 @@ jobs:
6867
env:
6968
RAILS_VERSION: '~> 5.2.0'
7069
- ruby: 2.2.10
71-
allow_failure: true
7270
env:
7371
RAILS_VERSION: '~> 5.2.0'
7472
- ruby: 2.2.10

spec/rspec/rails/example/view_example_group_spec.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,8 @@ def _view; end # Stub method
239239
expect(view_spec.view).to eq(view)
240240
end
241241

242-
if RUBY_VERSION <= "2.3.0" && ENV["RAILS_VERSION"] !~ /stable/ && ::Rails.version.to_f == 5.2
243-
pending_only_on_ruby_22_rails_52 = """
244-
Rails 5.2.4.2 has a syntax error in ActionDispatch::Request::Session.
245-
(A &. usage which does not work in 2.2.10)
246-
It has been fixed but not released, this spec will not pass until that
247-
has been released.
248-
"""
249-
else
250-
pending_only_on_ruby_22_rails_52 = false
251-
end
252-
253242
# Regression test from rspec/rspec-rails#833
254-
it 'is accessible to configuration-level hooks', pending: pending_only_on_ruby_22_rails_52 do
243+
it 'is accessible to configuration-level hooks' do
255244
run_count = 0
256245
RSpec.configuration.before(:each, type: :view) do
257246
# `view` is provided from the view example type, and serves to

0 commit comments

Comments
 (0)