Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
preloading scenarios
  • Loading branch information
guilhermesilveira committed Oct 31, 2010
1 parent 7ff14ae commit 7b70d44
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/restfulie/client/mikyung/core.rb
Expand Up @@ -42,6 +42,11 @@ def accepts(accepts)

# keeps changing from a steady state to another until its goal has been achieved
def run

# load the steps and scenario
@goal.steps
@goal.scenario

if @start.kind_of? String
client = Restfulie.at(@start)
client = client.follow if @follow
Expand All @@ -52,10 +57,6 @@ def run
@start = current = @goal.class.get_restfulie.get
end

# load the steps and scenario
@goal.steps
@goal.scenario

while(!@goal.completed?(current))
current = @walker.move(@goal, current, self)
end
Expand Down

0 comments on commit 7b70d44

Please sign in to comment.