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

This commit is contained in:
Florian Staudacher 2012-05-24 22:18:10 +02:00
parent 75277b4d0e
commit f19f6110b1
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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