From 55cb2dd30a14f695c7c9c6d5890507167bf45373 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Fri, 13 Feb 2015 12:26:56 +0100 Subject: [PATCH] Green pending specs for evil query spec tag stream --- spec/lib/evil_query_spec.rb | 4 +++- spec/lib/stream/tag_spec.rb | 7 ------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/spec/lib/evil_query_spec.rb b/spec/lib/evil_query_spec.rb index 29c69d0d2..0e98c5c78 100644 --- a/spec/lib/evil_query_spec.rb +++ b/spec/lib/evil_query_spec.rb @@ -12,6 +12,8 @@ end describe EvilQuery::Participation do before do @status_message = FactoryGirl.create(:status_message, :author => bob.person) + # done in StatusMessagesController#create + bob.participate!(@status_message) end it "includes posts liked by the user" do @@ -25,7 +27,7 @@ describe EvilQuery::Participation do end it "should include your statusMessages" do - skip + expect(EvilQuery::Participation.new(bob).posts).to include(@status_message) end describe "ordering" do diff --git a/spec/lib/stream/tag_spec.rb b/spec/lib/stream/tag_spec.rb index ea74fec62..5e1205c83 100644 --- a/spec/lib/stream/tag_spec.rb +++ b/spec/lib/stream/tag_spec.rb @@ -32,13 +32,6 @@ describe Stream::Tag do stranger_post = stranger.post(:status_message, :text => "#what", :public => true, :to => 'all') expect(@stream.posts).to eq([stranger_post]) end - - it 'displays a post with a comment containing the tag search' do - skip "this code is way too slow. need to re-implement in a way that doesn't suck" - other_post = bob.post(:status_message, :text => "sup y'all", :to => 'all') - FactoryGirl.create(:comment, :text => "#what", :post => other_post) - expect(@stream.posts).to eq([other_post]) - end end context 'without a user' do