Skip to content

Commit

Permalink
Added test for dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 30, 2024
1 parent ce95fe8 commit dfff7a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/dashboard_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require_relative "test_helper"

class DashboardTest < ActionDispatch::IntegrationTest
def test_root
get field_test_engine.root_path
assert_response :success
end
end
1 change: 1 addition & 0 deletions test/internal/config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Rails.application.routes.draw do
resources :users, only: [:index]
get "exclude", to: "users#exclude"
mount FieldTest::Engine, at: "field_test"
end

0 comments on commit dfff7a7

Please sign in to comment.