Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f19f6110b1a87902d61f3dc9e8be3084fc3f9318 1 parent 75277b4
@Raven24 Raven24 authored
View
2  spec/lib/stream/tag_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
View
4 spec/models/status_message_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.