diff options
author | Sarah Mei <sarahmei@gmail.com> | 2011-11-07 07:10:26 +0400 |
---|---|---|
committer | Sarah Mei <sarahmei@gmail.com> | 2011-11-07 07:10:26 +0400 |
commit | 53dbbfbb151969917cb43c6d16fe601a51d8e6a1 (patch) | |
tree | 96a87ba26fac678d243062e8e4a08af9bf6192f1 /spec | |
parent | a216252fe0ddb817f0ee170e17f6975502172d05 (diff) |
Fix order-dependent test that would sometimes fail on postgres
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/user/querying_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/user/querying_spec.rb b/spec/models/user/querying_spec.rb index d010570d3..9baef3545 100644 --- a/spec/models/user/querying_spec.rb +++ b/spec/models/user/querying_spec.rb @@ -75,7 +75,6 @@ describe User do before do aspect_to_post = bob.aspects.where(:name => "generic").first @status = bob.post(:status_message, :text=> "hello", :to => aspect_to_post) - @vis = @status.share_visibilities(Post).first end it "pulls back non hidden posts" do @@ -83,7 +82,8 @@ describe User do end it "does not pull back hidden posts" do - @vis.update_attributes(:hidden => true) + visibility = @status.share_visibilities(Post).where(:contact_id => alice.contact_for(bob.person).id).first + visibility.update_attributes(:hidden => true) alice.visible_shareable_ids(Post).include?(@status.id).should be_false end end |