Sha256: cc806a8b376631e820fadb6909aa784913f2158f9756d9c6bfabed6987810c9b

Contents?: true

Size: 725 Bytes

Versions: 1

Compression:

Stored size: 725 Bytes

Contents

Shindo.tests("Fog::Tasks[:wunderlist] | task model") do

  service = Fog::Tasks[:wunderlist]

  tests('success') do

    tests('#save').succeeds do
      @task = service.tasks.new :title => 'fog test task',
                                :starred => true,
                                :list_id => 'inbox'
      @task.save
    end
    
    tests('#update using save').succeeds do
      @task.note = 'some note'
      @task.save
      service.tasks.get(@task.id).note == 'some note'
    end
    
    tests('#update').succeeds do
      @task.note = 'some note 2'
      @task.update
      service.tasks.get(@task.id).note == 'some note 2'
    end
    
    tests('#destroy').succeeds do
      @task.destroy
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-wunderlist-0.1 tests/wunderlist/models/task_tests.rb