Skip to content

Commit

Permalink
DG-28544 integration testing
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil91 committed Apr 25, 2024
1 parent 13c6293 commit a305e8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion spec/task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@

describe '#find_task' do
it 'retrieves a specific task by ID' do
task_id = 123
task_id = 6486
task = generate_task(task_id)
stub_factory "/api/v1/tasks/#{task_id}", task.to_json

Expand All @@ -244,6 +244,14 @@
end
end

def generate_task(task_id)
{
'id' => task_id,
'name' => "Task #{task_id}",
'status' => SFRest::Task::STATUS_COMPLETED
}
end

describe '#get_task_id' do
it 'can get task id for a named task' do
tasks = generate_tasks
Expand Down

0 comments on commit a305e8a

Please sign in to comment.