From f19f6110b1a87902d61f3dc9e8be3084fc3f9318 Mon Sep 17 00:00:00 2001 From: Florian Staudacher Date: Thu, 24 May 2012 22:18:10 +0200 Subject: [PATCH] match tag arrays by what they actually contain, not by order --- spec/lib/stream/tag_spec.rb | 2 +- spec/models/status_message_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/stream/tag_spec.rb b/spec/lib/stream/tag_spec.rb index 978104e5d..5f319bf69 100644 --- a/spec/lib/stream/tag_spec.rb +++ b/spec/lib/stream/tag_spec.rb @@ -81,7 +81,7 @@ describe Stream::Tag do 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 diff --git a/spec/models/status_message_spec.rb b/spec/models/status_message_spec.rb index 50293c818..24a75c6f5 100644 --- a/spec/models/status_message_spec.rb +++ b/spec/models/status_message_spec.rb @@ -270,8 +270,8 @@ STR 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