Welcome to mirror list, hosted at ThFree Co, Russian Federation.

web_hooks_spec.rb « lib « spec - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9ee6d4c389cbb65acc5c74235c3219f30d480785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#   Copyright (c) 2010, Diaspora Inc.  This file is
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.

require 'spec_helper'

describe Diaspora::Webhooks do
  it "should add the following methods to Post on inclusion" do
    user = Factory.build(:user)
    post = Factory.build(:status_message, :author => user.person)

    post.respond_to?(:to_diaspora_xml).should be true
  end
end