1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
describe PostAdder do
let(:post_repository) {
fake(:post_repository, as: :class, add: post)
}
fake(:admin_notifier, as: :class)
fake(:social_media_notifier, as: :class)
let(:post_adder) {
PostAdder.new(post_repository,
admin_notifier,
social_media_notifier) }
before { post_adder.add(details) }
it "saves the blog posts" # ...
it "notifies the administrators" # ...
it "notifies social media sites" # ...
end
|