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 392781f7aa
781 changed files with 65944 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
# frozen_string_literal: true
require "test_helper"
class StocksControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
admin = create(:admin)
sign_in admin
get stocks_url
assert_response :success
end
test "should get show" do
stock = create(:stock)
admin = create(:admin)
sign_in admin
get stock_url(stock)
assert_response :success
end
test "trade stock button links to trading floor for students" do
stock = create(:stock)
student = create(:student)
create(:portfolio, user: student)
sign_in student
get stock_url(stock)
assert_select "a[href='#{stocks_path}']", text: "Trade Stock"
end
end