Permalink
Browse files

match tag arrays by what they actually contain, not by order

  • Loading branch information...
1 parent 75277b4 commit f19f6110b1a87902d61f3dc9e8be3084fc3f9318 @Raven24 Raven24 committed May 24, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 spec/lib/stream/tag_spec.rb
  2. +2 −2 spec/models/status_message_spec.rb
@@ -81,7 +81,7 @@
it 'returns posts regardless of the tag case' do
stream = Stream::Tag.new(nil, "newhere")
- stream.posts.should == [@post_lc, @post_uc, @post_cp]
+ stream.posts.should =~ [@post_lc, @post_uc, @post_cp]
end
end
@@ -270,8 +270,8 @@ def controller
msg_lc.save; msg_uc.save; msg_cp.save
tag_array = msg_lc.tags
- msg_uc.tags.should == tag_array
- msg_cp.tags.should == tag_array
+ msg_uc.tags.should =~ tag_array
+ msg_cp.tags.should =~ tag_array
end
end

0 comments on commit f19f611

Please sign in to comment.