mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-26 18:18:51 +01:00
Add controller for Problems with index and show actions
This commit is contained in:
14
test/controllers/problems_controller_test.rb
Normal file
14
test/controllers/problems_controller_test.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ProblemsControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get show" do
|
||||
get :show, id: 1
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
4
test/helpers/problems_helper_test.rb
Normal file
4
test/helpers/problems_helper_test.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ProblemsHelperTest < ActionView::TestCase
|
||||
end
|
||||
Reference in New Issue
Block a user