Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amrani/common_testing
Common Rails testing configuration for Rspec. This gem can help you share your spec setup across rails engines.
https://github.com/amrani/common_testing
modular-monolith rails rspec ruby
Last synced: 12 days ago
JSON representation
Common Rails testing configuration for Rspec. This gem can help you share your spec setup across rails engines.
- Host: GitHub
- URL: https://github.com/amrani/common_testing
- Owner: amrani
- Created: 2020-07-02T19:24:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T00:12:05.000Z (over 4 years ago)
- Last Synced: 2024-11-05T13:26:25.398Z (about 2 months ago)
- Topics: modular-monolith, rails, rspec, ruby
- Language: Ruby
- Homepage: https://hocnest.com/blog/testing-modular-monolith-engines/
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This gem is intended to be installed locally.
## Installation
```zsh
./rails_app $ mkdir -p ./gems
./rails_app $ cd ./gems
./rails_app/gems $ git clone https://github.com/amrani/common_testing.git
```Bundle and remove git.
```zsh
./host_app/gems $ cd ./common_testing
./host_app/gems/common_testing $ rm -rf .git
./host_app/gems/common_testing $ bundle install
```For adding it to a rails engine:
```ruby
# engines/my_engine/Gemfilegroup :development, :test do
gem "common_testing", path: "../../gems/common_testing"
end
``````ruby
# engines/my_engine/my_engine.gemspec
spec.add_development_dependency "common_testing"
```