mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
Add sample rails + postgresql application
Signed-off-by: Alex Koch <alex@esparklearning.com>
This commit is contained in:
parent
d9bea6d801
commit
bbad983a6e
84 changed files with 1570 additions and 1 deletions
5
rails-postgres/app/test/application_system_test_case.rb
Normal file
5
rails-postgres/app/test/application_system_test_case.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require "test_helper"
|
||||
|
||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
|
||||
end
|
|
@ -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
rails-postgres/app/test/controllers/.keep
Normal file
0
rails-postgres/app/test/controllers/.keep
Normal file
0
rails-postgres/app/test/fixtures/files/.keep
vendored
Normal file
0
rails-postgres/app/test/fixtures/files/.keep
vendored
Normal file
0
rails-postgres/app/test/helpers/.keep
Normal file
0
rails-postgres/app/test/helpers/.keep
Normal file
0
rails-postgres/app/test/integration/.keep
Normal file
0
rails-postgres/app/test/integration/.keep
Normal file
0
rails-postgres/app/test/mailers/.keep
Normal file
0
rails-postgres/app/test/mailers/.keep
Normal file
0
rails-postgres/app/test/models/.keep
Normal file
0
rails-postgres/app/test/models/.keep
Normal file
0
rails-postgres/app/test/system/.keep
Normal file
0
rails-postgres/app/test/system/.keep
Normal file
13
rails-postgres/app/test/test_helper.rb
Normal file
13
rails-postgres/app/test/test_helper.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue