Permalink
Browse files

test for :show command

  • Loading branch information...
1 parent d405533 commit 2cb1b84e7d57c426a0d657fb8943ed68729d5f7e cloudhead committed Mar 11, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/koi_spec.rb
View
@@ -92,6 +92,11 @@
@db.load.last[:title].should == TASKS[1]
end
+ it "should show tasks with specific tags" do
+ Koi.run(:tag, TASKS[1], "#food")
+ Koi.run(:show, ["#food"]).first[:title].should == TASKS[1]
+ end
+
it "should sticky tasks" do
Koi.run(:float, TASKS[2])
@db.load.list[0][:title].should == TASKS[2]

0 comments on commit 2cb1b84

Please sign in to comment.