Sha256: 36a0a23d87641c519f4016e9792400960600848891172eaa090630199c5a6e1b

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe PyBossa::TaskRun do
  describe '#list' do
    it 'should return a list of task runs' do
      response = PyBossa::TaskRun.list
      response.each{|x| expect(x).to have_key('task_id')}
    end
  end

  describe '#get' do
    it 'should get an task run' do
      response = PyBossa::TaskRun.get PyBossa::TaskRun.list.first['id']
      expect(response).to have_key('task_id')
    end
  end

  describe '#create' do
    pending "Must use API key to test this method"
  end

  describe '#update' do
    pending "Must use API key to test this method"
  end

  describe '#delete' do
    pending "Must use API key to test this method"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pybossa-api-0.0.2 spec/pybossa-api/task_run_spec.rb