From fb803127f73a602d52130cf97de117f932b41cc0 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Tue, 2 Apr 2019 11:05:33 +0100 Subject: [PATCH] Better specs for Scan#new --- spec/lib/scan_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/lib/scan_spec.rb b/spec/lib/scan_spec.rb index 9abd9af8..07206f96 100644 --- a/spec/lib/scan_spec.rb +++ b/spec/lib/scan_spec.rb @@ -13,6 +13,10 @@ its(:controllers) { should eq([controller::Core.new]) } it 'sets the CMSScanner.start_memory' do + CMSScanner.start_memory = 0 # to avoid getting it from previous specs + + described_class.new + expect(CMSScanner.start_memory).to be_positive end end