Green pending specs for evil query spec tag stream
This commit is contained in:
parent
e9179e33ea
commit
55cb2dd30a
2 changed files with 3 additions and 8 deletions
|
|
@ -12,6 +12,8 @@ end
|
||||||
describe EvilQuery::Participation do
|
describe EvilQuery::Participation do
|
||||||
before do
|
before do
|
||||||
@status_message = FactoryGirl.create(:status_message, :author => bob.person)
|
@status_message = FactoryGirl.create(:status_message, :author => bob.person)
|
||||||
|
# done in StatusMessagesController#create
|
||||||
|
bob.participate!(@status_message)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "includes posts liked by the user" do
|
it "includes posts liked by the user" do
|
||||||
|
|
@ -25,7 +27,7 @@ describe EvilQuery::Participation do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should include your statusMessages" do
|
it "should include your statusMessages" do
|
||||||
skip
|
expect(EvilQuery::Participation.new(bob).posts).to include(@status_message)
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "ordering" do
|
describe "ordering" do
|
||||||
|
|
|
||||||
|
|
@ -32,13 +32,6 @@ describe Stream::Tag do
|
||||||
stranger_post = stranger.post(:status_message, :text => "#what", :public => true, :to => 'all')
|
stranger_post = stranger.post(:status_message, :text => "#what", :public => true, :to => 'all')
|
||||||
expect(@stream.posts).to eq([stranger_post])
|
expect(@stream.posts).to eq([stranger_post])
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
context 'without a user' do
|
context 'without a user' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue