-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
81 additions
and
5 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# list environment variables in a .env file | ||
# prefer rails credentials `rails credentials:edit` | ||
# required variables can be specified in `initializers/dotenv.rb` | ||
# generate a template file with `$ dotenv -t .env` | ||
# SOMEVARIABLE=xxxxxsecretvariablexxxxx | ||
# SOMEVARIABLE=xxxxxenvvariablexxxxx |
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.1.2 | ||
3.2.2 |
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
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,36 @@ | ||
# README | ||
|
||
This README would normally document whatever steps are necessary to get the | ||
application up and running. | ||
|
||
Things you may want to cover: | ||
|
||
* Ruby version | ||
|
||
* System dependencies | ||
|
||
* Configuration | ||
|
||
* Database creation | ||
|
||
* Database initialization | ||
|
||
* How to run the test suite | ||
|
||
* Services (job queues, cache servers, search engines, etc.) | ||
|
||
### Local dev | ||
Start redis | ||
```bash | ||
brew services start redis | ||
``` | ||
|
||
start dev server | ||
```bash | ||
dev | ||
``` | ||
|
||
|
||
* Deployment instructions | ||
|
||
* ... |
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,29 @@ | ||
require 'capybara/cuprite' | ||
require 'capybara/rspec' | ||
|
||
Capybara.default_driver = :rack_test | ||
Capybara.javascript_driver = :cuprite | ||
Capybara.server = :puma, {Silent: true} | ||
|
||
Capybara.register_driver(:cuprite) do |app| | ||
Capybara::Cuprite::Driver.new( | ||
app, | ||
window_size: [1920, 1080], | ||
headless: false | ||
) | ||
end | ||
|
||
module FakeCapybaraPage | ||
def page | ||
Nokogiri::HTML::DocumentFragment.parse(response.body) | ||
end | ||
end | ||
|
||
RSpec.configure do |config| | ||
config.include FakeCapybaraPage, type: :request | ||
config.include Capybara::RSpecMatchers, type: :request | ||
config.include ActionView::RecordIdentifier, type: :request | ||
config.include Capybara::RSpecMatchers, type: :component | ||
config.before(:each, type: :system) { driven_by(:rack_test) } | ||
config.before(:each, js: true, type: :system) { driven_by(:cuprite) } | ||
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,5 @@ | ||
require 'view_component/test_helpers' | ||
|
||
RSpec.configure do |config| | ||
config.include ViewComponent::TestHelpers, type: :component | ||
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