Commit 9951c37688fe4060fd1bad3f58308992899635a0
Committed by
Heitor
1 parent
a8fce861
Exists in
colab
and in
4 other branches
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>
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
features/compound_metric_configuration/create.feature
@@ -3,7 +3,7 @@ Feature: Compound Metric Configuration Creation | @@ -3,7 +3,7 @@ Feature: Compound Metric Configuration Creation | ||
3 | As a regular user | 3 | As a regular user |
4 | I should be able to create compound metric configurations | 4 | I should be able to create compound metric configurations |
5 | 5 | ||
6 | - @kalibro_configuration_restart @javascript @wip | 6 | + @kalibro_configuration_restart @javascript |
7 | Scenario: compound metric configuration creation | 7 | Scenario: compound metric configuration creation |
8 | Given I am a regular user | 8 | Given I am a regular user |
9 | And I am signed in | 9 | And I am signed in |
features/support/hooks.rb
@@ -15,3 +15,8 @@ Before do |scenario| | @@ -15,3 +15,8 @@ Before do |scenario| | ||
15 | 15 | ||
16 | I18n.locale = I18n.default_locale | 16 | I18n.locale = I18n.default_locale |
17 | end | 17 | end |
18 | + | ||
19 | +AfterConfiguration do |config| | ||
20 | + KalibroClient::KalibroCucumberHelpers.clean_configurations | ||
21 | + KalibroClient::KalibroCucumberHelpers.clean_processor | ||
22 | +end |