File tree Expand file tree Collapse file tree 11 files changed +20
-16
lines changed Expand file tree Collapse file tree 11 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ $ retest 'bundle exec rails test <test>'
119
119
120
120
## Ruby Support
121
121
122
- Retest supports ruby 2.4 and above.
122
+ Retest supports ruby 2.5 and above.
123
123
124
124
## Roadmap
125
125
Original file line number Diff line number Diff line change 1
- FROM ruby:2.4.10-alpine
1
+ FROM ruby:2.5.9-alpine3.13
2
2
3
3
ARG BUILD_PACKAGES="build-base git"
4
4
Original file line number Diff line number Diff line change @@ -26,9 +26,11 @@ def test_start_retest
26
26
27
27
class GitChangesTest < Minitest ::Test
28
28
def setup
29
+ `git config --global init.defaultBranch main`
30
+ `git config --global --add safe.directory /usr/src/app`
31
+ `git config --global user.email "you@example.com"`
32
+ `git config --global user.name "Your Name"`
29
33
`git init`
30
- `git config --local user.email "you@example.com"`
31
- `git config --local user.name "Your Name"`
32
34
`git add .`
33
35
`git commit -m "First commit"`
34
36
`git checkout -b feature-branch`
@@ -53,7 +55,7 @@ def test_diffs_from_other_branch
53
55
`git add .`
54
56
`git commit -m "Rename, Add and Remove files"`
55
57
56
- @output , @pid = launch_retest 'retest --diff=master --ruby'
58
+ @output , @pid = launch_retest 'retest --diff=main --ruby'
57
59
sleep 2
58
60
59
61
assert_match <<~EXPECTED , @output . read
Original file line number Diff line number Diff line change 1
- FROM ruby:2.4.10-alpine
1
+ FROM ruby:2.5.9-alpine3.13
2
2
3
3
ARG BUILD_PACKAGES="build-base git sqlite-dev"
4
4
Original file line number Diff line number Diff line change 1
- FROM ruby:2.4.10-alpine
1
+ FROM ruby:2.5.9-alpine3.13
2
2
3
3
ARG BUILD_PACKAGES="build-base git nodejs tzdata sqlite-dev"
4
4
Original file line number Diff line number Diff line change @@ -94,17 +94,19 @@ def test_repository_setup
94
94
95
95
class DiffOptionTest < Minitest ::Test
96
96
def setup
97
+ `git config --global init.defaultBranch main`
98
+ `git config --global user.email "you@example.com"`
99
+ `git config --global user.name "Your Name"`
100
+ `git config --global --add safe.directory /usr/src/app`
97
101
`git init`
98
- `git config --local user.email "you@example.com"`
99
- `git config --local user.name "Your Name"`
100
102
`git add .`
101
103
`git commit -m "First commit"`
102
104
`git checkout -b feature-branch`
103
105
end
104
106
105
107
def teardown
106
108
@output . delete
107
- `git checkout master `
109
+ `git checkout - `
108
110
`git clean -fd .`
109
111
`git checkout .`
110
112
`git branch -D feature-branch`
@@ -118,7 +120,7 @@ def test_diffs_from_other_branch
118
120
`git add .`
119
121
`git commit -m "Scaffold books"`
120
122
121
- @output , @pid = launch_retest 'retest --diff=master '
123
+ @output , @pid = launch_retest 'retest --diff=main '
122
124
sleep 10
123
125
124
126
assert_match <<~EXPECTED , @output . read
Original file line number Diff line number Diff line change 1
- FROM ruby:2.4.10-alpine
1
+ FROM ruby:2.5.9-alpine3.13
2
2
3
3
ARG BUILD_PACKAGES="build-base git nodejs tzdata sqlite-dev"
4
4
Original file line number Diff line number Diff line change 1
- FROM ruby:2.4.10-alpine
1
+ FROM ruby:2.5.9-alpine3.13
2
2
3
3
ARG BUILD_PACKAGES="build-base git"
4
4
Original file line number Diff line number Diff line change 1
- FROM ruby:2.4.10-alpine
1
+ FROM ruby:2.5.9-alpine3.13
2
2
3
3
ARG BUILD_PACKAGES="build-base git"
4
4
Original file line number Diff line number Diff line change 1
- FROM ruby:2.4.10-alpine
1
+ FROM ruby:2.5.9-alpine3.13
2
2
3
3
ARG BUILD_PACKAGES="build-base git"
4
4
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
spec . summary = "A simple command line tool to watch file change and run its matching spec."
10
10
spec . homepage = "https://github.com/AlexB52/retest"
11
11
spec . license = "MIT"
12
- spec . required_ruby_version = Gem ::Requirement . new ( ">= 2.3 .0" )
12
+ spec . required_ruby_version = Gem ::Requirement . new ( ">= 2.5 .0" )
13
13
14
14
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
15
15
You can’t perform that action at this time.
0 commit comments