Skip to content

Commit

Permalink
Merge branch 'dev' into 127/evaluator-routes-controller-view
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchud authored Aug 27, 2024
2 parents c0ccf96 + 803d3c1 commit 8b057c0
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/evaluation_forms_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

class EvaluationFormsController < ApplicationController
def index; end
end
5 changes: 5 additions & 0 deletions app/controllers/manage_submissions_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

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

module EvaluationFormsHelper
end
4 changes: 4 additions & 0 deletions app/helpers/manage_submissions_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

module ManageSubmissionsHelper
end
7 changes: 7 additions & 0 deletions app/views/evaluation_forms/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>Evaluation Forms</h1>

<p>Placeholder text for Evaluation Forms.</p>
</div>
</div>
7 changes: 7 additions & 0 deletions app/views/manage_submissions/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>Manage Submissions</h1>

<p>Placeholder text for Manage Submissions.</p>
</div>
</div>
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
get '/dashboard', to: "dashboard#index"

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

# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
# Can be used by load balancers and uptime monitors to verify that the app is live.
Expand Down
15 changes: 15 additions & 0 deletions spec/helpers/evaluation_forms_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 EvaluationFormsHelper. For example:
#
# describe EvaluationFormsHelper 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 EvaluationFormsHelper do
pending "add some examples to (or delete) #{__FILE__}"
end
15 changes: 15 additions & 0 deletions spec/helpers/manage_submissions_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 ManageSubmissionsHelper. For example:
#
# describe ManageSubmissionsHelper 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 ManageSubmissionsHelper do
pending "add some examples to (or delete) #{__FILE__}"
end
11 changes: 11 additions & 0 deletions spec/requests/evaluation_forms_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rails_helper'

RSpec.describe "EvaluationForms" do
describe "GET /evaluation_forms" do
it "renders the index view with the correct header" do
get evaluation_forms_path
expect(response).to have_http_status(:success)
expect(response.body).to include("Evaluation Forms")
end
end
end
11 changes: 11 additions & 0 deletions spec/requests/manage_submissions_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rails_helper'

RSpec.describe "ManageSubmissions" do
describe "GET /manage_submissions" do
it "renders the index view with the correct header" do
get manage_submissions_path
expect(response).to have_http_status(:success)
expect(response.body).to include("Manage Submissions")
end
end
end

0 comments on commit 8b057c0

Please sign in to comment.