Green pending specs for evil query spec tag stream

This commit is contained in:
Steffen van Bergerem 2015-02-13 12:26:56 +01:00
parent e9179e33ea
commit 55cb2dd30a
2 changed files with 3 additions and 8 deletions

View file

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

View file

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