Sha256: 03954e41e3e8ca0b57d0c9516c3ebcf4d10babc844df081d6b4034488ac98626

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

Shindo.tests('Fog::Tasks[:wunderlist] | create_task request', ['wunderlist']) do
  
  tests('success') do

    test('#create_task') do
      @task = Fog::Tasks[:wunderlist].create_task("fog test task", 'inbox').body
      @task['title'] == 'fog test task'
    end

    test('task list is inbox') do
      @task['list_id'] == 'inbox'
    end
    
    test('#delete_task') do
      Fog::Tasks[:wunderlist].delete_task(@task['id']).status == 200
    end
  end

  tests('failure') do
    raises(Excon::Errors::NotFound, '#create_task with invalid list') do
      Fog::Tasks[:wunderlist].create_task("fog test task", '00000011').body
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-wunderlist-0.1 tests/wunderlist/requests/create_task_tests.rb