-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🥦🩼 ↝ landlubbers can't touch my rubies
- Loading branch information
1 parent
5a91d06
commit 2d1e890
Showing
480 changed files
with
6,090 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
13
test/channels copy 10/application_cable/connection_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
30
test/controllers copy 10/password_resets_controller_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.