Skip to content

Commit

Permalink
Added another addMediaPackage call and sleep to make sure that the te…
Browse files Browse the repository at this point in the history
…st passes...might want to rewrite this test
  • Loading branch information
cjcolvar committed Jul 17, 2012
1 parent 63d68e1 commit a9c1641
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/lib/workflow_spec.rb
Expand Up @@ -27,6 +27,9 @@

describe "instances_json" do
it "should return a JSON doc with a list of instances that have the state RUNNING" do
video = File.new "spec/fixtures/dance_practice.ogx"
workflow = @client.addMediaPackage(video, {"title" => "hydrant:13", "flavor" => "presenter/source", "workflow" => "hydrant"})
sleep 5
json = @client.instances_json({"state" => "running"})
json["workflows"]["totalCount"].to_i.should > 1
end
Expand Down

0 comments on commit a9c1641

Please sign in to comment.