diaspora/spec/lib/diaspora/webhooks_spec.rb
2011-09-14 11:23:12 -07:00

19 lines
487 B
Ruby

# Copyright (c) 2010-2011, 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
describe '#subscribers' do
it 'throws an error if the including module does not redefine it' do
class Foo
include Diaspora::Webhooks
end
f = Foo.new
proc{ f.subscribers(1)}.should raise_error /override subscribers/
end
end
end