Sha256: b22f0cdde5f58d684f49ca307be2b11576f9b359de9242bf69226d6828b4520d

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

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

  tests('success') do

    test('#update_task title') do
      @task = service.create_task("fog test task", 'inbox').body
      service.update_task @task['id'], { :title => 'updated by fog' }
      @task = service.tasks.get @task['id']
      @task.title == 'updated by fog'
    end
    
    test('#update_task note') do
      service.update_task @task.id, { :note => 'some notes' }
      @task = service.tasks.get @task.id
      @task.note == 'some notes'
    end

    @task.destroy
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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