Sha256: 74c797a54c654a2b698f9105d694a4c2cfffeefdd0520ff59816d63b39986434
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
RSpec.describe RaiseIfRoot do it 'should have a version number' do expect(RaiseIfRoot::VERSION).to be_a(String) end it 'raises if root' do expect(Process).to receive(:uid).and_return(0) expect { require 'raise-if-root' }.to raise_error(RaiseIfRoot::AssertionFailed, /\bUID is 0\z/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
raise-if-root-0.0.2 | spec/unit/raise-if-root_spec.rb |
raise-if-root-0.0.1 | spec/unit/raise-if-root_spec.rb |