try to use stable version for database cleaner

This commit is contained in:
Dmitriy Zaporozhets 2013-02-28 21:02:41 +02:00
parent 1c517153a8
commit 00ae65b108
4 changed files with 6 additions and 11 deletions

View file

@ -84,11 +84,11 @@ class ProjectMergeRequests < Spinach::FeatureSteps
end
And 'I switch to the diff tab' do
visit diffs_project_merge_request_path(merge_request.project, merge_request)
visit diffs_project_merge_request_path(project, merge_request)
end
And 'I switch to the merge request\'s comments tab' do
visit project_merge_request_path(merge_request.project, merge_request)
visit project_merge_request_path(project, merge_request)
end
And 'I click on the first commit in the merge request' do

View file

@ -34,6 +34,7 @@ Spinach.hooks.before_scenario do
Gitlab.config.gitlab_shell.stub(repos_path: Rails.root.join('tmp', 'test-git-base-path'))
FileUtils.rm_rf Gitlab.config.gitlab_shell.repos_path
FileUtils.mkdir_p Gitlab.config.gitlab_shell.repos_path
DatabaseCleaner.start
end
Spinach.hooks.after_scenario do