summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-28 21:02:41 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-28 21:02:41 +0200
commit00ae65b10808289252b1115eb86b90fcddc17d59 (patch)
tree9ecdbad5431f44991abfb5b588469aff480db70e
parent1c517153a889f77f0a2c321ce4e013f4504253e9 (diff)
downloadgitlab-ce-00ae65b10808289252b1115eb86b90fcddc17d59.tar.gz
try to use stable version for database cleaner
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock10
-rw-r--r--features/steps/project/project_merge_requests.rb4
-rw-r--r--features/support/env.rb1
4 files changed, 6 insertions, 11 deletions
diff --git a/Gemfile b/Gemfile
index 723cfd8b058..e6dfec9f49b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -144,7 +144,7 @@ group :development, :test do
gem "capybara", '2.0.2'
gem "pry"
gem "awesome_print"
- gem "database_cleaner", ref: "9f898fc50d87a5d51760f9dcf374bf5ffda21baf", git: "https://github.com/bmabey/database_cleaner.git"
+ gem "database_cleaner"
gem "launchy"
gem 'factory_girl_rails'
diff --git a/Gemfile.lock b/Gemfile.lock
index 9ee413d4738..76f1c214c5e 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,11 +1,4 @@
GIT
- remote: https://github.com/bmabey/database_cleaner.git
- revision: 9f898fc50d87a5d51760f9dcf374bf5ffda21baf
- ref: 9f898fc50d87a5d51760f9dcf374bf5ffda21baf
- specs:
- database_cleaner (0.9.1)
-
-GIT
remote: https://github.com/ctran/annotate_models.git
revision: be4e26825b521f0b2d86b181e2dff89901aa9b1e
specs:
@@ -133,6 +126,7 @@ GEM
connection_pool (1.0.0)
crack (0.3.1)
daemons (1.1.9)
+ database_cleaner (0.9.1)
debug_inspector (0.0.2)
devise (2.1.2)
bcrypt-ruby (~> 3.0)
@@ -474,7 +468,7 @@ DEPENDENCIES
chosen-rails (= 0.9.8)
coffee-rails (~> 3.2.2)
colored
- database_cleaner!
+ database_cleaner
devise (~> 2.1.0)
draper (~> 0.18.0)
email_spec
diff --git a/features/steps/project/project_merge_requests.rb b/features/steps/project/project_merge_requests.rb
index 09ce6b720d7..4c22119b07e 100644
--- a/features/steps/project/project_merge_requests.rb
+++ b/features/steps/project/project_merge_requests.rb
@@ -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
diff --git a/features/support/env.rb b/features/support/env.rb
index da40b38b79c..2fd7ffdb813 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -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