cloudfoundry-incubator/admin-ui — pull request #9 by jackfengibm (2014-03-26 00:22:15+00:00)
Title: fixed errors in admin_spec.rb

This change aimed at fixing the following test case failures:

rspec ./spec/integration/admin_spec.rb:203 # AdminUI::Admin retrieves and validates logs retrieves
rspec ./spec/integration/admin_spec.rb:303 # AdminUI::Admin tasks creates DEA, retrieves all tasks and retrieves specific status

1) AdminUI::Admin retrieves and validates logs retrieves
Failure/Error: expect(item).to include('path' => log_file_displayed,
expected {"path"=>"/tmp/admin_ui_displayed.log", "size"=>32, "time"=>1395784913000} to include {"path"=>"/tmp/admin_ui_displayed.log", "size"=>32, "time"=>1395784913735}
Diff:
@@ -1,2 +1,4 @@
-[{"path"=>"/tmp/admin_ui_displayed.log", "size"=>32, "time"=>1395784913735}]
+"path" => "/tmp/admin_ui_displayed.log",
+"size" => 32,
+"time" => 1395784913000
# ./spec/integration/admin_spec.rb:208:in `block (4 levels) in '

2) AdminUI::Admin tasks creates DEA, retrieves all tasks and retrieves specific status
Failure/Error: expect(found_out).to be_true
expected: true value
got: false
# ./spec/integration/admin_spec.rb:341:in `block (3 levels) in '