Sha256: 7fb8e610711cf8efdc468d803e075449d891e04fb40154d74ac2e13a9c467c40

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

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

describe PyBossa::Task do
  describe '#list' do
    it 'should return a list of tasks' do
      response = PyBossa::Task.list
      response.each{|x| expect(x).to have_key('state')}
    end
  end

  describe '#get' do
    it 'should get an task' do
      response = PyBossa::Task.get PyBossa::Task.list.first['id']
      expect(response).to have_key('state')
    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_spec.rb