README.md in witch_doctor-0.1.2 vs README.md in witch_doctor-0.2.0
- old
+ new
@@ -51,11 +51,11 @@
```
```ruby
# /config/initializers/witch_doctor.rb
-VirusScan.token = Rails
+WitchDoctor.token = Rails
.application
.secrets
.fetch('antivirus_scan')
.fetch('token')
```
@@ -123,11 +123,36 @@
end
```
# Testing
-The gem/engine is pretty well tested but I recomend everyone to write
-interation test for every application it's introduced to.
+Make sure you turn of `virus_scan_scheduling_on` option so that gem wont
+create extra records when your tests are running
+
+```
+# config/initializers/witch_doctor.rb
+WitchDoctor.skip_virus_scan_scheduling = true
+```
+
+turn it on only when needed
+
+```ruby
+# spec/request/virus_scan.rb
+
+# ...
+before do
+ WitchDoctor.skip_virus_scan_scheduling = false
+end
+
+after do
+ WitchDoctor.skip_virus_scan_scheduling = true
+end
+
+# ...
+```
+
+The gem/engine is pretty well tested but I recomend to write
+interation test for every application it is introduced to.
Example with RSpec request test:
```ruby
require 'spec_helper'