Shared helper for expect_redirect_to_queued_task.

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Use expect in expect_redirect_to_queued_task.

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
fix rspec deprecation warnings

Signed-off-by: Tony Hansmann <thansmann@pivotallabs.com>