Sha256: 4218fcf087b1b6ccb8fb165d05c76ce1ad838681c40a4b8b6b6efeab3dec26db

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

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

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

  describe '#get' do
    it 'should get an app' do
      response = PyBossa::App.get PyBossa::App.list.last['id']
      expect(response).to have_key('name')
    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/app_spec.rb