Newer
Older
echarp
a validé
# Test the notes life cycle
include Devise::TestHelpers
sign_in users(:one)
echarp
a validé
test 'should get new' do
get :new, moderation_id: @note.event.id
echarp
a validé
test 'should create note' do
post :create, moderation_id: @note.event.id, note: {
author: @note.author,
contents: @note.contents,
date: @note.date
}
assert_redirected_to moderations_path