Skip to content

Commit

Permalink
[127] Create Evaluator route, controller, view (#133)
Browse files Browse the repository at this point in the history
* 127 Placeholder evaluator files

---------

Co-authored-by: Stephen Chudleigh <[email protected]>
  • Loading branch information
cpreisinger and stepchud authored Aug 27, 2024
1 parent 803d3c1 commit 2d8ef24
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/evaluations_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

class EvaluationsController < ApplicationController
def index; end
end
4 changes: 4 additions & 0 deletions app/helpers/evaluations_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

module EvaluationsHelper
end
7 changes: 7 additions & 0 deletions app/views/evaluations/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="usa-card__container custom-card col-md-6">
<div class="usa-card__body">
<h1>Evaluations</h1>

<p>Find me in app/views/evaluations/index.html.erb</p>
</div>
</div>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
get '/', to: "dashboard#index"
get '/dashboard', to: "dashboard#index"

resources :evaluations, only: [:index]
resources :evaluation_forms, only: [:index]
resources :manage_submissions, only: [:index]

Expand Down
15 changes: 15 additions & 0 deletions spec/helpers/evaluations_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'rails_helper'

# Specs in this file have access to a helper object that includes
# the EvaluationsHelper. For example:
#
# describe EvaluationsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# end
RSpec.describe EvaluationsHelper do
pending "add some examples to (or delete) #{__FILE__}"
end
11 changes: 11 additions & 0 deletions spec/requests/evaluations_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rails_helper'

RSpec.describe "Evaluations" do
describe "GET /index" do
it "returns http success" do
get "/evaluations"
expect(response).to have_http_status(:success)
expect(response.body).to include("Evaluations")
end
end
end

0 comments on commit 2d8ef24

Please sign in to comment.