Commit 9951c37688fe4060fd1bad3f58308992899635a0

Authored by Rafael Manzo
Committed by Heitor
1 parent a8fce861

Add after configuration hook to cucumber

Clear both kalibro databases before running the first test to ensure
that seeds do not affect it.

Signed off by: Heitor Reis <marcheing@gmail.com>
features/compound_metric_configuration/create.feature
... ... @@ -3,7 +3,7 @@ Feature: Compound Metric Configuration Creation
3 3 As a regular user
4 4 I should be able to create compound metric configurations
5 5  
6   - @kalibro_configuration_restart @javascript @wip
  6 + @kalibro_configuration_restart @javascript
7 7 Scenario: compound metric configuration creation
8 8 Given I am a regular user
9 9 And I am signed in
... ...
features/support/hooks.rb
... ... @@ -15,3 +15,8 @@ Before do |scenario|
15 15  
16 16 I18n.locale = I18n.default_locale
17 17 end
  18 +
  19 +AfterConfiguration do |config|
  20 + KalibroClient::KalibroCucumberHelpers.clean_configurations
  21 + KalibroClient::KalibroCucumberHelpers.clean_processor
  22 +end
... ...