fix facotries

This commit is contained in:
Dmitriy Zaporozhets 2013-04-01 18:24:05 +03:00
parent f5dec306fd
commit adccf3b499
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ FactoryGirl.define do
factory :merge_request do
title
author
project
project factory: :project_with_code
source_branch "master"
target_branch "stable"

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe "On a merge request", js: true do
let!(:project) { create(:project) }
let!(:project) { create(:project_with_code) }
let!(:merge_request) { create(:merge_request, project: project) }
before do
@ -83,7 +83,7 @@ end
describe "On a merge request diff", js: true, focus: true do
let!(:project) { create(:project) }
let!(:project) { create(:project_with_code) }
let!(:merge_request) { create(:merge_request_with_diffs, project: project) }
before do