Skip to content

Commit

Permalink
Better specs for Scan#new
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanlr committed Apr 2, 2019
1 parent 9f827a4 commit fb80312
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/lib/scan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb80312

Please sign in to comment.