Take unused models out of webhooks spec
This commit is contained in:
parent
ff3666df5e
commit
abf27bbfb2
1 changed files with 4 additions and 14 deletions
|
|
@ -6,21 +6,11 @@ require 'spec_helper'
|
|||
|
||||
describe Diaspora::Webhooks do
|
||||
before do
|
||||
@user = Factory.create(:user)
|
||||
@aspect = @user.aspect(:name => "losers")
|
||||
@user2 = Factory.create(:user)
|
||||
@aspect2 = @user2.aspect(:name => "losers")
|
||||
friend_users(@user, @aspect, @user2, @aspect2)
|
||||
end
|
||||
|
||||
describe "body" do
|
||||
before do
|
||||
@user = Factory.build(:user)
|
||||
@post = Factory.build(:status_message, :person => @user.person)
|
||||
end
|
||||
|
||||
it "should add the following methods to Post on inclusion" do
|
||||
@post.respond_to?(:to_diaspora_xml).should be true
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue