Introduction of TextSentinel to enforce title and body quality.

This commit is contained in:
Robin Ward
2013-02-06 20:09:31 -05:00
parent 94e58d733e
commit 40da901e5d
12 changed files with 220 additions and 32 deletions

View File

@@ -30,7 +30,7 @@ describe PostAlertObserver do
context 'when editing a post' do
it 'notifies a user of the revision' do
lambda {
post.revise(evil_trout, "world")
post.revise(evil_trout, "world is the new body of the message")
}.should change(post.user.notifications, :count).by(1)
end
end