add react and typescript

This commit is contained in:
João Geonizeli
2021-08-03 21:23:52 -03:00
parent 5b88865de8
commit 88542cdadd
20 changed files with 428 additions and 51 deletions

View File

@@ -0,0 +1,16 @@
# frozen_string_literal: true
require "rails_helper"
# Specs in this file have access to a helper object that includes
# the HomeHelper. For example:
#
# describe HomeHelper 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(HomeHelper, type: :helper) do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,11 @@
# frozen_string_literal: true
require "rails_helper"
RSpec.describe("Homes", type: :request) do
describe "GET /index" do
it "returns http success" do
get "/home/index"
expect(response).to(have_http_status(:success))
end
end
end

View File

@@ -0,0 +1,6 @@
# frozen_string_literal: true
require "rails_helper"
RSpec.describe("home/index.html.erb", type: :view) do
pending "add some examples to (or delete) #{__FILE__}"
end