-
Notifications
You must be signed in to change notification settings - Fork 116
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
fed5f22
commit bf625ca
Showing
2 changed files
with
35 additions
and
23 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,3 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
OPENAPI=1 bundle exec rspec spec/requests/api/ --seed 1993 | ||
OPENAPI=1 bundle exec rspec spec/requests/api/ --seed 1993 | ||
|
||
# sed command implementation is different for GNU and macOS | ||
sed_i() { | ||
if [[ $OSTYPE == 'darwin'* ]]; then | ||
sed -i '' -E 's/[ '$'\t'']+$//' $@ | ||
else | ||
sed -i 's/[ \t]*$//' $@ | ||
fi | ||
} | ||
|
||
# Remove trailing whitespaces from doc file | ||
sed_i doc/openapi.yaml |
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