diff --git a/app/views/pages/welcome.html.erb b/app/views/pages/welcome.html.erb
new file mode 100644
index 000000000..8c5dc06f8
--- /dev/null
+++ b/app/views/pages/welcome.html.erb
@@ -0,0 +1,16 @@
+
Hello, Matt
+
Let's verify your payment information.
+
+
We'll connect to your payment records to get proof of payments to your caseworker and get benfits faster.
+
+
+
+
+ Your information is secure. We will not share or keep your log in information. You will be able to preview and approve everything that is shared with your caseworker.
+
+
+
+
+<%= link_to '/providers' do %>
+
+<% end %>
diff --git a/app/views/providers/confirm.html.erb b/app/views/providers/confirm.html.erb
new file mode 100644
index 000000000..9f3e05774
--- /dev/null
+++ b/app/views/providers/confirm.html.erb
@@ -0,0 +1,25 @@
+
Review payment information from <%= @employer %>
+
Below is payment information from <%= @employer %> for the past 90 days.
+
+
Total Payments: $<%= @payments.reduce(0) { |sum, payment| sum + payment[:amount] } %>
+
+ <% @payments.each_with_index do |payment, index| %>
+
+
+
+
+
+ <%= payment[:hours] %> hours at $<%= payment[:rate] %> per hour.
+
+
+
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 3165d6217..01d08ed55 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -16,7 +16,7 @@ en:
demo_banner: TEST SITE - Do not use real personal information (demo purposes only) - TEST SITE
menu: Menu
primary: Primary navigation
- title: Iv Cbv Payroll
+ title: Verify.gov
languages:
en: English
es: Español
diff --git a/config/routes.rb b/config/routes.rb
index 4f83cf729..066dafaaa 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -6,10 +6,15 @@
end
scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
# Your application routes go here
- root "pages#home"
- # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
+ root "pages#welcome"
+ # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
+ get "providers/search" => "providers#search"
+ get "providers/confirm" => "providers#confirm"
+ resources :providers
# Defines the root path route ("/")
# root "articles#index"
+
+
end
end
diff --git a/spec/helpers/providers_helper_spec.rb b/spec/helpers/providers_helper_spec.rb
new file mode 100644
index 000000000..84cc5b923
--- /dev/null
+++ b/spec/helpers/providers_helper_spec.rb
@@ -0,0 +1,15 @@
+require 'rails_helper'
+
+# Specs in this file have access to a helper object that includes
+# the ProvidersHelper. For example:
+#
+# describe ProvidersHelper 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 ProvidersHelper, type: :helper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
diff --git a/spec/requests/providers_spec.rb b/spec/requests/providers_spec.rb
new file mode 100644
index 000000000..6a1fa61f3
--- /dev/null
+++ b/spec/requests/providers_spec.rb
@@ -0,0 +1,7 @@
+require 'rails_helper'
+
+RSpec.describe "Providers", type: :request do
+ describe "GET /index" do
+ pending "add some examples (or delete) #{__FILE__}"
+ end
+end
diff --git a/spec/views/pages/home.html.erb_spec.rb b/spec/views/pages/welcome.html.erb_spec
similarity index 55%
rename from spec/views/pages/home.html.erb_spec.rb
rename to spec/views/pages/welcome.html.erb_spec
index 6ce2e2afb..63a6d9dd4 100644
--- a/spec/views/pages/home.html.erb_spec.rb
+++ b/spec/views/pages/welcome.html.erb_spec
@@ -1,8 +1,8 @@
require "rails_helper"
-RSpec.describe "pages/home.html.erb", type: :view do
+RSpec.describe "pages/welcome.html.erb", type: :view do
it "displays the gov banner" do
- render template: "pages/home", layout: "layouts/application"
+ render template: "pages/welcome", layout: "layouts/application"
expect(rendered).to match "An official website of the United States government"
end
end