mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
49 lines
1.2 KiB
Ruby
49 lines
1.2 KiB
Ruby
require 'test_helper'
|
|
|
|
class TimelineEventsControllerTest < ActionDispatch::IntegrationTest
|
|
# setup do
|
|
# @timeline_event = timeline_events(:one)
|
|
# end
|
|
|
|
# test "should get index" do
|
|
# get timeline_events_url
|
|
# assert_response :success
|
|
# end
|
|
|
|
# test "should get new" do
|
|
# get new_timeline_event_url
|
|
# assert_response :success
|
|
# end
|
|
|
|
# test "should create timeline_event" do
|
|
# assert_difference('TimelineEvent.count') do
|
|
# post timeline_events_url, params: { timeline_event: { } }
|
|
# end
|
|
|
|
# assert_redirected_to timeline_event_url(TimelineEvent.last)
|
|
# end
|
|
|
|
# test "should show timeline_event" do
|
|
# get timeline_event_url(@timeline_event)
|
|
# assert_response :success
|
|
# end
|
|
|
|
# test "should get edit" do
|
|
# get edit_timeline_event_url(@timeline_event)
|
|
# assert_response :success
|
|
# end
|
|
|
|
# test "should update timeline_event" do
|
|
# patch timeline_event_url(@timeline_event), params: { timeline_event: { } }
|
|
# assert_redirected_to timeline_event_url(@timeline_event)
|
|
# end
|
|
|
|
# test "should destroy timeline_event" do
|
|
# assert_difference('TimelineEvent.count', -1) do
|
|
# delete timeline_event_url(@timeline_event)
|
|
# end
|
|
|
|
# assert_redirected_to timeline_events_url
|
|
# end
|
|
end
|