Browse files

release 0.1.2

  • Loading branch information...
1 parent f056cb1 commit a0edf5ae1b3f8ba19155f9b6206b8959f8066a97 @jmettraux committed Mar 27, 2009
Showing with 6 additions and 7 deletions.
  1. +1 −1 lib/rufus/rtm/resources.rb
  2. +4 −4 test/tasks_test.rb
  3. +1 −2 test/test.rb
View
2 lib/rufus/rtm/resources.rb
@@ -163,7 +163,7 @@ def initialize (list_id, h)
@taskseries_id = h['id']
@task_id = t['id']
- @tags = TagArray.new self, h['tags']
+ @tags = TagArray.new(self, h['tags'])
end
#
View
8 test/tasks_test.rb
@@ -39,7 +39,7 @@ def test_0
t1 = ts.find { |t| t.task_id == t0.task_id }
assert_equal taskname, t1.name
- assert_equal "", t1.tags.join(",")
+ assert_equal '', t1.tags.join(',')
ts = Task.find :filter => "status:incomplete"
@@ -61,19 +61,19 @@ def test_1
lists = List.find
assert_not_nil(lists.find { |e| e.name == 'Inbox' })
- work = lists.find { |e| e.name == "Work" }
+ work = lists.find { |e| e.name == 'Work' }
taskname = "more work #{Time.now.to_i}"
t0 = Task.add! taskname, work.list_id
- tasks = Task.find :list_id => work.list_id, :filer => "status:incomplete"
+ tasks = Task.find :list_id => work.list_id, :filer => 'status:incomplete'
assert_not_nil(tasks.find { |t| t.task_id == t0.task_id })
t0.complete!
- tasks = Task.find :list_id => work.list_id, :filer => "status:completed"
+ tasks = Task.find :list_id => work.list_id, :filer => 'status:completed'
assert_not_nil(tasks.find { |t| t.task_id == t0.task_id })
t0.delete!
View
3 test/test.rb
@@ -1,4 +1,3 @@
-require 'tasks_test'
-#require 'lists_test'
+Dir["#{File.dirname(__FILE__)}/*_test.rb"].each { |path| load(path) }

0 comments on commit a0edf5a

Please sign in to comment.