set up rails

This commit is contained in:
jane 2021-11-12 22:20:13 -05:00
parent 3854b1edfe
commit 1e2aecc21c
138 changed files with 9829 additions and 53 deletions

View file

@ -0,0 +1,5 @@
require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
end

View file

@ -0,0 +1,11 @@
require "test_helper"
class ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end

0
test/controllers/.keep Normal file
View file

View file

@ -0,0 +1,7 @@
require "test_helper"
class HomeControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

View file

@ -0,0 +1,8 @@
require "test_helper"
class LoginControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get login_index_url
assert_response :success
end
end

View file

@ -0,0 +1,8 @@
require "test_helper"
class WpAdminControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get wp_admin_index_url
assert_response :success
end
end

View file

@ -0,0 +1,9 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
id:
application_id: MyString
two:
id:
application_id: MyString

0
test/fixtures/files/.keep vendored Normal file
View file

11
test/fixtures/users.yml vendored Normal file
View file

@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
id: MyString
email: MyString
password: MyString
two:
id: MyString
email: MyString
password: MyString

0
test/helpers/.keep Normal file
View file

0
test/integration/.keep Normal file
View file

0
test/mailers/.keep Normal file
View file

0
test/models/.keep Normal file
View file

View file

@ -0,0 +1,7 @@
require "test_helper"
class AuthorizedApplicationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

7
test/models/user_test.rb Normal file
View file

@ -0,0 +1,7 @@
require "test_helper"
class UserTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

0
test/system/.keep Normal file
View file

13
test/test_helper.rb Normal file
View file

@ -0,0 +1,13 @@
ENV['RAILS_ENV'] ||= 'test'
require_relative "../config/environment"
require "rails/test_help"
class ActiveSupport::TestCase
# Run tests in parallel with specified workers
parallelize(workers: :number_of_processors)
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
# Add more helper methods to be used by all tests here...
end