Commit 71517c1a8f20c71e5a1353e54a0fa72941507070
Committed by
Diego Camarinha
1 parent
ecf2212e
Exists in
colab
and in
4 other branches
Acceptance tests repository_steps fixed for kalibro_client version 1
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
features/step_definitions/repository_steps.rb
| @@ -57,19 +57,19 @@ Given(/^I start to process that repository$/) do | @@ -57,19 +57,19 @@ Given(/^I start to process that repository$/) do | ||
| 57 | end | 57 | end |
| 58 | 58 | ||
| 59 | Given(/^I wait up for a ready processing$/) do | 59 | Given(/^I wait up for a ready processing$/) do |
| 60 | - while !Processing.has_ready_processing(@repository.id) | 60 | + while !@repository.has_ready_processing |
| 61 | sleep(10) | 61 | sleep(10) |
| 62 | end | 62 | end |
| 63 | end | 63 | end |
| 64 | 64 | ||
| 65 | Given(/^I wait up for the last processing to get ready$/) do | 65 | Given(/^I wait up for the last processing to get ready$/) do |
| 66 | - while Processing.last_processing_of(@repository.id).state != "READY" | 66 | + while @repository.last_processing.state != "READY" |
| 67 | sleep(10) | 67 | sleep(10) |
| 68 | end | 68 | end |
| 69 | end | 69 | end |
| 70 | 70 | ||
| 71 | Given(/^I wait up for a error processing$/) do | 71 | Given(/^I wait up for a error processing$/) do |
| 72 | - while Processing.last_processing_state_of(@repository.id) != "ERROR" | 72 | + while @repository.last_processing_state != "ERROR" |
| 73 | sleep(10) | 73 | sleep(10) |
| 74 | end | 74 | end |
| 75 | end | 75 | end |
| @@ -87,7 +87,7 @@ Given(/^I am at repository edit page$/) do | @@ -87,7 +87,7 @@ Given(/^I am at repository edit page$/) do | ||
| 87 | end | 87 | end |
| 88 | 88 | ||
| 89 | Given(/^I ask for the last ready processing of the given repository$/) do | 89 | Given(/^I ask for the last ready processing of the given repository$/) do |
| 90 | - @processing = Processing.last_ready_processing_of @repository.id | 90 | + @processing = @repository.last_ready_processing |
| 91 | end | 91 | end |
| 92 | 92 | ||
| 93 | Given(/^I ask for the module result of the given processing$/) do | 93 | Given(/^I ask for the module result of the given processing$/) do |