Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62278188
examples_controller_test.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 12, 03:23
Size
1018 B
Mime Type
text/x-c++
Expires
Tue, May 14, 03:23 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17627618
Attached To
R5853 genocrunch-2.1
examples_controller_test.rb
View Options
require 'test_helper'
class ExamplesControllerTest < ActionDispatch::IntegrationTest
setup do
@example = examples(:one)
end
test "should get index" do
get examples_url
assert_response :success
end
test "should get new" do
get new_example_url
assert_response :success
end
test "should create example" do
assert_difference('Example.count') do
post examples_url, params: { example: { } }
end
assert_redirected_to example_url(Example.last)
end
test "should show example" do
get example_url(@example)
assert_response :success
end
test "should get edit" do
get edit_example_url(@example)
assert_response :success
end
test "should update example" do
patch example_url(@example), params: { example: { } }
assert_redirected_to example_url(@example)
end
test "should destroy example" do
assert_difference('Example.count', -1) do
delete example_url(@example)
end
assert_redirected_to examples_url
end
end
Event Timeline
Log In to Comment