-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
cfbfe2d
commit 1157d63
Showing
13 changed files
with
90 additions
and
73 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
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.3 | ||
3.3.0 |
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 |
---|---|---|
|
@@ -10,4 +10,6 @@ RUN bundle install | |
|
||
COPY . /app | ||
|
||
ENV RUBY_YJIT_ENABLE=1 | ||
|
||
CMD ["rackup", "-o", "0", "-p", "3000"] |
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# this file kicks up the app! | ||
# run: "thin start" | ||
require "#{File.dirname(__FILE__)}/app" | ||
require_relative 'app' | ||
|
||
run MyApp |
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 |
---|---|---|
@@ -1,24 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test/unit' | ||
require 'rack/test' | ||
require 'json' | ||
require 'test_helper' | ||
|
||
OUTER_APP = Rack::Builder.parse_file('config.ru').first | ||
|
||
class HomepageTest < Test::Unit::TestCase | ||
include Rack::Test::Methods | ||
|
||
def app | ||
->(_env) { [200, { 'content-type' => 'text/plain' }, ['All responses are OK']] } | ||
OUTER_APP | ||
end | ||
|
||
def test_response_is_ok | ||
# Optionally set headers used for all requests in this spec: | ||
# header 'accept-charset', 'utf-8' | ||
|
||
# First argument is treated as the path | ||
def test_root | ||
get '/' | ||
|
||
assert last_response.ok? | ||
assert_equal 'All responses are OK', last_response.body | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test/unit' | ||
require 'rack/test' | ||
require 'active_support' | ||
|
||
require 'rack/builder' | ||
require 'json' | ||
|
||
$LOAD_PATH.unshift File.expand_path('../lib', __dir__) |