match tag arrays by what they actually contain, not by order
This commit is contained in:
parent
75277b4d0e
commit
f19f6110b1
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue