Sha256: cb4fb3f020f42e375895c2524a77431bac3dc74b108f25eeba18067a80264144
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
Shindo.tests("Fog::Tasks[:wunderlist] | list model") do service = Fog::Tasks[:wunderlist] tests('success') do tests('#save').succeeds do @list = service.lists.new :title => 'fog test list', :starred => true, :list_id => 'inbox' @list.save end tests('#update using save').succeeds do @list.title = 'updated title' @list.save service.lists.get(@list.id).title == 'updated title' end tests('#update').succeeds do @list.title = 'updated title 2' @list.update service.lists.get(@list.id).title == 'updated title 2' end tests('#destroy').succeeds do @list.destroy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-wunderlist-0.1 | tests/wunderlist/models/list_tests.rb |