Skip to content

Commit 6a5dea6

Browse files
committed
Update github URL as the repo has moved to bash-unit
1 parent f4ee06f commit 6a5dea6

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Share your success with bash_unit on your blog, twitter, stackoverflow...
1212
Nice words to share your experience with bash_unit is always appreciated.
1313
If you want to say something nice about bash_unit but can not think of a
1414
place for that right now, just add a comment to
15-
[issue #37](https://github.com/pgrange/bash_unit/issues/37).
15+
[issue #37](https://github.com/bash-unit/bash_unit/issues/37).
1616

1717
Starring the project is also appreciated.
1818

1919
# Suggest improvements
2020

2121
When you see something that is not working with bash_unit, or if you feel
2222
something is missing, open an
23-
[issue](https://github.com/pgrange/bash_unit/issues).
23+
[issue](https://github.com/bash-unit/bash_unit/issues).
2424

2525
Opening issues helps improving bash_unit.
2626

@@ -32,7 +32,7 @@ and create a pull-request.
3232

3333
You can contribute with new features you think are missing but you can
3434
also find inspiration with the
35-
[open issues](https://github.com/pgrange/bash_unit/issues) of bash_unit.
35+
[open issues](https://github.com/bash-unit/bash_unit/issues) of bash_unit.
3636

3737
See [how to contribute code](CONTRIBUTING_CODE.md).
3838

README.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ ifndef::backend-manpage[]
103103

104104
This will install *bash_unit* in your current working directory:
105105

106-
curl -s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh | bash
106+
curl -s https://raw.githubusercontent.com/bash-unit/bash_unit/master/install.sh | bash
107107

108-
You can also download it from the https://github.com/pgrange/bash_unit/releases[release page].
108+
You can also download it from the https://github.com/bash-unit/bash_unit/releases[release page].
109109

110110
endif::[]
111111

@@ -128,7 +128,7 @@ jobs:
128128
- uses: actions/checkout@v4
129129
- name: Unit testing with bash_unit
130130
run: |
131-
curl -s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh | bash
131+
curl -s https://raw.githubusercontent.com/bash-unit/bash_unit/master/install.sh | bash
132132
FORCE_COLOR=true ./bash_unit tests/test_*
133133
```
134134

@@ -144,7 +144,7 @@ test:
144144
script:
145145
- apt-get update
146146
- apt-get install --no-install-recommends -y curl ca-certificates
147-
- curl -s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh | bash
147+
- curl -s https://raw.githubusercontent.com/bash-unit/bash_unit/master/install.sh | bash
148148
- FORCE_COLOR=true ./bash_unit tests/test_*
149149
```
150150

@@ -159,7 +159,7 @@ Add the following to your pre-commit configuration. By default it will run scrip
159159
[.pre-commit-config,yaml]
160160
```
161161
repos:
162-
- repo: https://github.com/pgrange/bash_unit
162+
- repo: https://github.com/bash-unit/bash_unit
163163
rev: v2.2.0
164164
hooks:
165165
- id: bash-unit
@@ -336,7 +336,7 @@ If you write code outside of any bash function, this code will be executed once
336336
your file is a bash script and *bash_unit* sources it before running your tests. It is suggested to write a
337337
*setup_suite* function and avoid any code outside a bash function. you must not use any bash_unit assertion
338338
in setup_suite or use exit in setup_suite for teardown_suite to be run.
339-
See https://github.com/pgrange/bash_unit/issues/43[issue 43] for more details.
339+
See https://github.com/bash-unit/bash_unit/issues/43[issue 43] for more details.
340340

341341
If you want to keep an eye on a test not yet implemented, prefix the name of the function by *todo* instead of test.
342342
Test to do are not executed and do not impact the global status of your test suite but are displayed in *bash_unit* output.

bash_unit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# along with this program; if not, write to the Free Software Foundation,
1515
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1616
#
17-
# https://github.com/pgrange/bash_unit
17+
# https://github.com/bash-unit/bash_unit
1818

1919
# shellcheck disable=2317 # Ignore unreachable - most function are not called.
2020
# shellcheck disable=2155 # Ignore Declare and assign separately
@@ -305,7 +305,7 @@ usage() {
305305
echo "<output format> is optional only supported value is tap" >&2
306306
echo "-r to execute test cases in random order" >&2
307307
echo "-v to get current version information" >&2
308-
echo "See https://github.com/pgrange/bash_unit" >&2
308+
echo "See https://github.com/bash-unit/bash_unit" >&2
309309
exit 1
310310
}
311311

docs/man/man1/bash_unit.1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ jobs:
240240
\- uses: actions/checkout@v4
241241
\- name: Unit testing with bash_unit
242242
run: |
243-
curl \-s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh | bash
243+
curl \-s https://raw.githubusercontent.com/bash-unit/bash_unit/master/install.sh | bash
244244
FORCE_COLOR=true ./bash_unit tests/test_*
245245
.fam
246246
.fi
@@ -262,7 +262,7 @@ test:
262262
script:
263263
\- apt\-get update
264264
\- apt\-get install \-\-no\-install\-recommends \-y curl ca\-certificates
265-
\- curl \-s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh | bash
265+
\- curl \-s https://raw.githubusercontent.com/bash-unit/bash_unit/master/install.sh | bash
266266
\- FORCE_COLOR=true ./bash_unit tests/test_*
267267
.fam
268268
.fi
@@ -283,7 +283,7 @@ Add the following to your pre\-commit configuration. By default it will run scri
283283
.nf
284284
.fam C
285285
repos:
286-
\- repo: https://github.com/pgrange/bash_unit
286+
\- repo: https://github.com/bash-unit/bash_unit
287287
rev: v2.2.0
288288
hooks:
289289
\- id: bash\-unit
@@ -495,7 +495,7 @@ your file is a bash script and \fBbash_unit\fP sources it before running your te
495495
\fBsetup_suite\fP function and avoid any code outside a bash function. you must not use any bash_unit assertion
496496
in setup_suite or use exit in setup_suite for teardown_suite to be run.
497497
See \c
498-
.URL "https://github.com/pgrange/bash_unit/issues/43" "issue 43" ""
498+
.URL "https://github.com/bash-unit/bash_unit/issues/43" "issue 43" ""
499499
for more details.
500500
.sp
501501
If you want to keep an eye on a test not yet implemented, prefix the name of the function by \fBtodo\fP instead of test.

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CURL="curl --show-error --silent --location"
66

77
echo "downloading bash_unit"
88
current_working_dir=$PWD
9-
tarball_urls=$($CURL https://api.github.com/repos/pgrange/bash_unit/releases | grep tarball_url)
9+
tarball_urls=$($CURL https://api.github.com/repos/bash-unit/bash_unit/releases | grep tarball_url)
1010
tarball_url=$(echo "$tarball_urls" | head -n 1 | cut -d '"' -f 4)
1111
tmp_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'tmpdir')
1212
cd "$tmp_dir" || exit

release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ publish_release() {
6363

6464
git push
6565
git push --tags
66-
curl -u "$user:$token" -XPOST https://api.github.com/repos/pgrange/bash_unit/releases -d "
66+
curl -u "$user:$token" -XPOST https://api.github.com/repos/bash-unit/bash_unit/releases -d "
6767
{
6868
\"tag_name\": \"$version\"
6969
}"

tests/test_cli.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ test_display_usage_when_test_file_does_not_exist() {
144144
}
145145

146146
test_bash_unit_succeed_when_no_failure_even_if_no_teardown() {
147-
#FIX https://github.com/pgrange/bash_unit/issues/8
147+
#FIX https://github.com/bash-unit/bash_unit/issues/8
148148
assert "$BASH_UNIT <(echo 'test_success() { echo -n ; }')"
149149
}
150150

151151
test_bash_unit_runs_teardown_even_in_case_of_failure() {
152-
#FIX https://github.com/pgrange/bash_unit/issues/10
152+
#FIX https://github.com/bash-unit/bash_unit/issues/10
153153
assert_equals "ran teardown" \
154154
"$($BASH_UNIT <(echo 'test_fail() { fail ; } ; teardown() { echo "ran teardown" >&2 ; }') 2>&1 >/dev/null)"
155155
}
@@ -160,19 +160,19 @@ test_bash_unit_runs_teardown_suite_even_in_case_of_failure() {
160160
}
161161

162162
test_bash_unit_runs_teardown_suite_even_in_case_of_failure_setup_suite() {
163-
#FIX https://github.com/pgrange/bash_unit/issues/43
163+
#FIX https://github.com/bash-unit/bash_unit/issues/43
164164
assert_equals "ran teardown_suite" \
165165
"$($BASH_UNIT <(echo 'setup_suite() { return 1 ; } ; teardown_suite() { echo "ran teardown_suite" >&2 ; }') 2>&1 >/dev/null)"
166166
}
167167

168168
test_one_test_should_stop_after_first_assertion_failure() {
169-
#FIX https://github.com/pgrange/bash_unit/issues/10
169+
#FIX https://github.com/bash-unit/bash_unit/issues/10
170170
assert_equals "before failure" \
171171
"$($BASH_UNIT <(echo 'test_fail() { echo "before failure" >&2 ; fail ; echo "after failure" >&2 ; }') 2>&1 >/dev/null)"
172172
}
173173

174174
test_one_test_should_stop_when_assert_fails() {
175-
#FIX https://github.com/pgrange/bash_unit/issues/26
175+
#FIX https://github.com/bash-unit/bash_unit/issues/26
176176
assert_equals "before failure" \
177177
"$($BASH_UNIT <(echo 'test_fail() { echo "before failure" >&2 ; assert false ; echo "after failure" >&2 ; }') 2>&1 >/dev/null)"
178178
}

tests/test_core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ EOF
218218
}
219219

220220
test_should_pretty_format_even_when_LANG_is_unset() {
221-
# See https://github.com/pgrange/bash_unit/pull/81
221+
# See https://github.com/bash-unit/bash_unit/pull/81
222222
unset LANG
223223
assert "echo foo | pretty_format GREEN I"
224224
}

0 commit comments

Comments
 (0)