user and session generated
This commit is contained in:
parent
0cec39413f
commit
53819e6839
18 changed files with 111 additions and 0 deletions
18
test/controllers/sessions_controller_test.rb
Normal file
18
test/controllers/sessions_controller_test.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
require "test_helper"
|
||||
|
||||
class SessionsControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get new" do
|
||||
get sessions_new_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get sessions_create_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get welcome" do
|
||||
get sessions_welcome_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
13
test/controllers/users_controller_test.rb
Normal file
13
test/controllers/users_controller_test.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
require "test_helper"
|
||||
|
||||
class UsersControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get new" do
|
||||
get users_new_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get users_create_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
9
test/fixtures/users.yml
vendored
Normal file
9
test/fixtures/users.yml
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
username: MyString
|
||||
password_digest: MyString
|
||||
|
||||
two:
|
||||
username: MyString
|
||||
password_digest: MyString
|
7
test/models/user_test.rb
Normal file
7
test/models/user_test.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class UserTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue