witch_doctor 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,4 +49,18 @@ describe VirusScan do
49
49
  expect(virus_scan.as_json['scanned_at']).to be nil
50
50
  end
51
51
  end
52
+
53
+ describe '#virus_scan_scheduling_on?' do
54
+ it 'should be true by default' do
55
+ expect(Document.new.virus_scan_scheduling_on?).to be true
56
+ end
57
+
58
+ context 'when skip scheduling is on' do
59
+ it 'should be true by default' do
60
+ WitchDoctor.skip_virus_scan_scheduling = true
61
+ expect(Document.new.virus_scan_scheduling_on?).to be false
62
+ WitchDoctor.skip_virus_scan_scheduling = false
63
+ end
64
+ end
65
+ end
52
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: witch_doctor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Valent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-05 00:00:00.000000000 Z
11
+ date: 2015-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -123,6 +123,7 @@ files:
123
123
  - app/controllers/witch_doctor/virus_scans_controller.rb
124
124
  - app/helpers/witch_doctor/application_helper.rb
125
125
  - app/models/virus_scan.rb
126
+ - app/models/witch_doctor/virus_scan.rb
126
127
  - app/permiterters/virus_scan_permitter.rb
127
128
  - config/routes.rb
128
129
  - db/migrate/20150209121818_create_witch_doctor_virus_scans.rb