From 71517c1a8f20c71e5a1353e54a0fa72941507070 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Tue, 14 Jul 2015 09:14:24 -0300 Subject: [PATCH] Acceptance tests repository_steps fixed for kalibro_client version 1 --- features/step_definitions/repository_steps.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/step_definitions/repository_steps.rb b/features/step_definitions/repository_steps.rb index 0065565..5955a17 100644 --- a/features/step_definitions/repository_steps.rb +++ b/features/step_definitions/repository_steps.rb @@ -57,19 +57,19 @@ Given(/^I start to process that repository$/) do end Given(/^I wait up for a ready processing$/) do - while !Processing.has_ready_processing(@repository.id) + while !@repository.has_ready_processing sleep(10) end end Given(/^I wait up for the last processing to get ready$/) do - while Processing.last_processing_of(@repository.id).state != "READY" + while @repository.last_processing.state != "READY" sleep(10) end end Given(/^I wait up for a error processing$/) do - while Processing.last_processing_state_of(@repository.id) != "ERROR" + while @repository.last_processing_state != "ERROR" sleep(10) end end @@ -87,7 +87,7 @@ Given(/^I am at repository edit page$/) do end Given(/^I ask for the last ready processing of the given repository$/) do - @processing = Processing.last_ready_processing_of @repository.id + @processing = @repository.last_ready_processing end Given(/^I ask for the module result of the given processing$/) do -- libgit2 0.21.2