README.md in isolator-0.6.1 vs README.md in isolator-0.6.2
- old
+ new
@@ -108,11 +108,11 @@
- [database_cleaner](https://github.com/DatabaseCleaner/database_cleaner) gem. Make sure that you require isolator _after_ database_cleaner.
### Supported ORMs
- `ActiveRecord` >= 4.1
-- `ROM::SQL` (only if Active Support instrumentation extenstion is loaded)
+- `ROM::SQL` (only if Active Support instrumentation extension is loaded)
### Adapters
Isolator has a bunch of built-in adapters:
- `:http` – built on top of [Sniffer][]
@@ -192,15 +192,15 @@
- `exception_message` – custom exception message (could be specified without a class)
- `details_message` – a block to generate additional exceptin message information:
```ruby
Isolator.isolate :active_job,
- target: ActiveJob::Base,
- method_name: :enqueue,
- exception_class: Isolator::BackgroundJobError,
- details_message: ->(obj, _args) {
- "#{obj.class.name}(#{obj.arguments})"
- }
+ target: ActiveJob::Base,
+ method_name: :enqueue,
+ exception_class: Isolator::BackgroundJobError,
+ details_message: ->(obj, _args) {
+ "#{obj.class.name}(#{obj.arguments})"
+ }
```
You can also add some callbacks to be run before and after the transaction:
```ruby