Skip to content

Commit

Permalink
🥦🩼 ↝ landlubbers can't touch my rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Feb 13, 2024
1 parent 5a91d06 commit 2d1e890
Show file tree
Hide file tree
Showing 480 changed files with 6,090 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 10.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 3.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 4.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 5.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 6.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 7.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 8.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy 9.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
17 changes: 17 additions & 0 deletions test/application_system_test_case copy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]

private

def sign_in(user)
visit new_session_path
within "form" do
fill_in "Email", with: user.email
fill_in "Password", with: "password"
click_button "Log in"
end
assert_text "Dashboard"
end
end
13 changes: 13 additions & 0 deletions test/channels copy 10/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy 2/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy 3/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy 4/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy 5/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy 6/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy 7/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy 8/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy 9/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
13 changes: 13 additions & 0 deletions test/channels copy/application_cable/connection_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "test_helper"

module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end
25 changes: 25 additions & 0 deletions test/controllers copy 10/accounts_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
require "test_helper"

class AccountsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in @user = users(:bob)
@account = accounts(:dylan_checking)
end

test "new" do
get new_account_path
assert_response :ok
end

test "show" do
get account_path(@account)
assert_response :ok
end

test "create" do
assert_difference -> { Account.count }, +1 do
post accounts_path, params: { account: { accountable_type: "Account::Credit" } }
assert_redirected_to accounts_url
end
end
end
12 changes: 12 additions & 0 deletions test/controllers copy 10/pages_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require "test_helper"

class PagesControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in users(:bob)
end

test "dashboard" do
get root_path
assert_response :ok
end
end
30 changes: 30 additions & 0 deletions test/controllers copy 10/password_resets_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
require "test_helper"

class PasswordResetsControllerTest < ActionDispatch::IntegrationTest
setup do
@user = users(:bob)
end

test "new" do
get new_password_reset_path
assert_response :ok
end

test "create" do
assert_enqueued_emails 1 do
post password_reset_path, params: { email: @user.email }
assert_redirected_to root_url
end
end

test "edit" do
get edit_password_reset_path(token: @user.generate_token_for(:password_reset))
assert_response :ok
end

test "update" do
patch password_reset_path(token: @user.generate_token_for(:password_reset)),
params: { user: { password: "password", password_confirmation: "password" } }
assert_redirected_to new_session_url
end
end
Loading

0 comments on commit 2d1e890

Please sign in to comment.