Permalink
Browse files

Fixed specs for bad array order

  • Loading branch information...
1 parent 06e9396 commit 07752b7ac54bbdcef097e583c33952a6d36c1791 @pepe pepe committed Nov 18, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/list_spec.rb
View
@@ -169,7 +169,7 @@ module Dooby
list.add(task = Task.new('@leader #context :status'))
list.add(task_two = Task.new('@leader #context :done'))
- list.find(['#context', '@leader']).should == formatted([task, task_two])
+ list.find(['#context', '@leader']).should =~ formatted([task_two, task])
end
end
end
@@ -180,7 +180,7 @@ module Dooby
list = List.new @location
#NOTE shouldn't this array be of uniq tags?
- list.all_tags.should == ["#context", "@person", "%project", ":status0", "#context", "@person", "%project", ":status1", "#context", "@person", "%project", ":status2"]
+ list.all_tags.should =~ ["#context", "%project", "@person", ":status0", "#context", "@person", "%project", ":status1", "#context", "@person", "%project", ":status2"]
end
end

0 comments on commit 07752b7

Please sign in to comment.