From 35f2d8633002623a121aeda12e6991f7097ebba1 Mon Sep 17 00:00:00 2001 From: Michael Hartl Date: Thu, 9 May 2013 17:14:01 -0700 Subject: [PATCH] Get Cucumber tests to pass --- Gemfile | 2 +- Gemfile.lock | 9 ++------- features/step_definitions/authentication_steps.rb | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Gemfile b/Gemfile index 2f775911b..f779d06aa 100644 --- a/Gemfile +++ b/Gemfile @@ -27,7 +27,7 @@ group :test do gem 'launchy', '2.2.0' gem 'factory_girl_rails', '4.2.0' gem 'cucumber-rails', '1.3.0', :require => false - gem 'database_cleaner', github: 'bmabey/database_cleaner' + gem 'database_cleaner', '~> 1.0.0.RC1' end group :assets do diff --git a/Gemfile.lock b/Gemfile.lock index 9b7b28f0c..7eef22b3c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,3 @@ -GIT - remote: git://github.com/bmabey/database_cleaner.git - revision: ce1d16298960c28182568611892bfa4c386cfaf5 - specs: - database_cleaner (0.9.1) - GIT remote: git://github.com/railstutorial/spork-rails.git revision: 5db525af2f917047057f546bc1ac2574d1c6b11e @@ -72,6 +66,7 @@ GEM capybara (>= 1.1.2) cucumber (>= 1.1.8) nokogiri (>= 1.5.0) + database_cleaner (1.0.0.RC1) diff-lcs (1.2.4) erubis (2.7.0) execjs (1.4.0) @@ -224,7 +219,7 @@ DEPENDENCIES childprocess (= 0.3.6) coffee-rails (= 4.0.0.beta1) cucumber-rails (= 1.3.0) - database_cleaner! + database_cleaner (~> 1.0.0.RC1) factory_girl_rails (= 4.2.0) faker (= 1.1.2) growl (= 1.0.3) diff --git a/features/step_definitions/authentication_steps.rb b/features/step_definitions/authentication_steps.rb index a42b7d557..1c3188bba 100644 --- a/features/step_definitions/authentication_steps.rb +++ b/features/step_definitions/authentication_steps.rb @@ -22,7 +22,7 @@ end Then /^he should see his profile page$/ do - expect(page).to have_selector('title', text: @user.name) + expect(page).to have_title(@user.name) end Then /^he should see a signout link$/ do