Добавление кнопки выхода, Изменение главной страницы на home, Выделение отдельного контроллера под организацию

This commit is contained in:
ARLakhin
2026-03-26 00:45:44 +03:00
parent df4c307e24
commit 853b82660f
14 changed files with 169 additions and 27 deletions
+15
View File
@@ -0,0 +1,15 @@
require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the OrganisationsHelper. For example:
#
# describe OrganisationsHelper 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 OrganisationsHelper, type: :helper do
pending "add some examples to (or delete) #{__FILE__}"
end
+18
View File
@@ -0,0 +1,18 @@
require 'rails_helper'
RSpec.describe "Organisations", type: :request do
describe "GET /index" do
it "returns http success" do
get "/organisations/index"
expect(response).to have_http_status(:success)
end
end
describe "GET /show" do
it "returns http success" do
get "/organisations/show"
expect(response).to have_http_status(:success)
end
end
end
@@ -0,0 +1,5 @@
require 'rails_helper'
RSpec.describe "organisations/index.html.tailwindcss", type: :view do
pending "add some examples to (or delete) #{__FILE__}"
end
@@ -0,0 +1,5 @@
require 'rails_helper'
RSpec.describe "organisations/show.html.tailwindcss", type: :view do
pending "add some examples to (or delete) #{__FILE__}"
end