From 7ad76c21b8c2a67d379db9f8e592f6a27013dd1a Mon Sep 17 00:00:00 2001 From: Diego Araújo Date: Wed, 10 Dec 2014 17:17:46 -0200 Subject: [PATCH] WIP: Adapting acceptance tests to KalibroClient. --- Gemfile.lock | 2 +- features/step_definitions/project_steps.rb | 2 +- features/step_definitions/reading_group_steps.rb | 2 +- features/support/env.rb | 7 ++----- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 7d6ce62..3e36af0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/mezuro/kalibro_client - revision: 434108322137611d54314ffb16206fe05c0dac08 + revision: a4cbc5b350e5a4ea0b5abe6e2ec53008474df161 specs: kalibro_client (0.0.1) activeresource (~> 4.0.0) diff --git a/features/step_definitions/project_steps.rb b/features/step_definitions/project_steps.rb index c1f88ec..c59d5e6 100644 --- a/features/step_definitions/project_steps.rb +++ b/features/step_definitions/project_steps.rb @@ -1,4 +1,4 @@ -require 'kalibro_gatekeeper_client/errors' +require 'kalibro_client/errors' Given(/^I am at the All Projects page$/) do visit projects_path diff --git a/features/step_definitions/reading_group_steps.rb b/features/step_definitions/reading_group_steps.rb index 52f1146..cd21ff0 100644 --- a/features/step_definitions/reading_group_steps.rb +++ b/features/step_definitions/reading_group_steps.rb @@ -1,4 +1,4 @@ -require 'kalibro_gatekeeper_client/errors' +require 'kalibro_client/errors' Given(/^I am at the All Reading Groups page$/) do visit reading_groups_path diff --git a/features/support/env.rb b/features/support/env.rb index 29be7aa..7cc26d6 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -77,11 +77,8 @@ end # See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature Cucumber::Rails::Database.javascript_strategy = :truncation -# KalibroGatekeeper hooks -require 'kalibro_gatekeeper_client/kalibro_cucumber_helpers/hooks.rb' - -# Configuring the right hooks -KalibroGatekeeperClient::KalibroCucumberHelpers.configure_from_yml("#{__dir__}/kalibro_cucumber_helpers.yml") +# KalibroClient hooks +require 'kalibro_client/kalibro_cucumber_helpers/hooks.rb' # Warden test helpers so the user authentication can be as fast as possible include Warden::Test::Helpers -- libgit2 0.21.2