Commit 7ad76c21b8c2a67d379db9f8e592f6a27013dd1a

Authored by Diego Camarinha
Committed by Rafael Manzo
1 parent ecd1b5dc

WIP: Adapting acceptance tests to KalibroClient.

Signed off by: Daniel Alves <danpaulalves@gmail.com>
1 GIT 1 GIT
2 remote: https://github.com/mezuro/kalibro_client 2 remote: https://github.com/mezuro/kalibro_client
3 - revision: 434108322137611d54314ffb16206fe05c0dac08 3 + revision: a4cbc5b350e5a4ea0b5abe6e2ec53008474df161
4 specs: 4 specs:
5 kalibro_client (0.0.1) 5 kalibro_client (0.0.1)
6 activeresource (~> 4.0.0) 6 activeresource (~> 4.0.0)
features/step_definitions/project_steps.rb
1 -require 'kalibro_gatekeeper_client/errors' 1 +require 'kalibro_client/errors'
2 2
3 Given(/^I am at the All Projects page$/) do 3 Given(/^I am at the All Projects page$/) do
4 visit projects_path 4 visit projects_path
features/step_definitions/reading_group_steps.rb
1 -require 'kalibro_gatekeeper_client/errors' 1 +require 'kalibro_client/errors'
2 2
3 Given(/^I am at the All Reading Groups page$/) do 3 Given(/^I am at the All Reading Groups page$/) do
4 visit reading_groups_path 4 visit reading_groups_path
features/support/env.rb
@@ -77,11 +77,8 @@ end @@ -77,11 +77,8 @@ end
77 # See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature 77 # See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
78 Cucumber::Rails::Database.javascript_strategy = :truncation 78 Cucumber::Rails::Database.javascript_strategy = :truncation
79 79
80 -# KalibroGatekeeper hooks  
81 -require 'kalibro_gatekeeper_client/kalibro_cucumber_helpers/hooks.rb'  
82 -  
83 -# Configuring the right hooks  
84 -KalibroGatekeeperClient::KalibroCucumberHelpers.configure_from_yml("#{__dir__}/kalibro_cucumber_helpers.yml") 80 +# KalibroClient hooks
  81 +require 'kalibro_client/kalibro_cucumber_helpers/hooks.rb'
85 82
86 # Warden test helpers so the user authentication can be as fast as possible 83 # Warden test helpers so the user authentication can be as fast as possible
87 include Warden::Test::Helpers 84 include Warden::Test::Helpers