Commit 71517c1a8f20c71e5a1353e54a0fa72941507070

Authored by Rafael Manzo
Committed by Diego Camarinha
1 parent ecf2212e

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 57 end
58 58  
59 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 61 sleep(10)
62 62 end
63 63 end
64 64  
65 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 67 sleep(10)
68 68 end
69 69 end
70 70  
71 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 73 sleep(10)
74 74 end
75 75 end
... ... @@ -87,7 +87,7 @@ Given(/^I am at repository edit page$/) do
87 87 end
88 88  
89 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 91 end
92 92  
93 93 Given(/^I ask for the module result of the given processing$/) do
... ...