Flaky test spec/models/release_highlight_spec.rb[1:1:1:1]
Flaky test on spec/models/release_highlight_spec.rb[1:1:1:1]
This test would fail when it is executed after spec/requests/whats_new_controller_spec.rb
.
Failures:
1) ReleaseHighlight.for_version with version param that exists returns items from that version
Failure/Error: expect(subject.items.first['title']).to eq("It's gonna be a bright")
NoMethodError:
undefined method `items' for nil:NilClass
# ./spec/models/release_highlight_spec.rb:23:in `block (4 levels) in <main>'
# ./spec/spec_helper.rb:324:in `block (3 levels) in <main>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:315:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:311:in `block (3 levels) in <main>'
# ./spec/spec_helper.rb:311:in `block (2 levels) in <main>'
# -e:1:in `<main>'
To reproduce:
$ bundle exec rspec spec/requests/whats_new_controller_spec.rb spec/models/release_highlight_spec.rb