chore: init commit

in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
2026-08-11 14:44:09 -04:00
parent 0012380fd3
commit 2854619bc9
782 changed files with 65944 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
# frozen_string_literal: true
require "test_helper"
class AnnouncementsControllerTest < ActionDispatch::IntegrationTest
setup do
@user = create(:student)
sign_in @user
@announcement = Announcement.create!(
title: "Test Announcement",
content: "Test content"
)
end
test "should show announcement" do
get announcement_url(@announcement)
assert_response :success
end
test "students can view announcements" do
get announcement_url(@announcement)
assert_response :success
assert_match @announcement.title, response.body
end
test "teachers can view announcements" do
sign_out @user
teacher = create(:teacher)
sign_in teacher
get announcement_url(@announcement)
assert_response :success
end
end