Skip to content

Commit 36773bd

Browse files
committed
Support args to rspec through make test
As the documentation in `technical-foundation.md` says is supported.
1 parent d8412be commit 36773bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

template/{{app_name}}/Makefile.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ wait-on-db:
169169
##################################################
170170

171171
test: ## Run the test suite
172-
$(RUBY_RUN_CMD) ./bin/rspec
172+
$(RUBY_RUN_CMD) ./bin/rspec $(args)
173173

174174
test-watch: ## Watch for file changes and run the test suite
175175
$(RUBY_RUN_CMD) ./bin/bundle exec guard

template/{{app_name}}/bin/rspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# sets RAILS_ENV to development, we need to override it:
55
export RAILS_ENV=test
66

7-
bundle exec rspec --format documentation
7+
bundle exec rspec --format documentation "$@"

0 commit comments

Comments
 (0)