Commit ade75c04 authored by Jan Provaznik's avatar Jan Provaznik

Fix transient rspec issue

CI randomly fails with:
    ActiveRecord::RecordNotFound:
       Couldn't find Project with 'id'=724

This is probably caused by DB cleanup strategy used for :js
tests in combination with `set`.
parent 2e690c82
require "spec_helper" require "spec_helper"
describe "User views issue" do describe "User views issue" do
set(:project) { create(:project_empty_repo, :public) } let(:project) { create(:project_empty_repo, :public) }
set(:user) { create(:user) } let(:user) { create(:user) }
set(:issue) { create(:issue, project: project, description: "# Description header", author: user) } let(:issue) { create(:issue, project: project, description: "# Description header", author: user) }
before do before do
project.add_developer(user) project.add_developer(user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment