Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/Gemfile

group :development, :test do
gem "common_testing", path: "../../gems/common_testing"
end
```

```ruby
# engines/my_engine/my_engine.gemspec
spec.add_development_dependency "common_testing"
```