Sha256: 370ccab5c3432e1e596f7378abcf77a6824b907cf6eafc433374b03481055ebc
Contents?: true
Size: 1.32 KB
Versions: 34
Compression:
Stored size: 1.32 KB
Contents
shared_examples_for 'support explicit linux kernel parameter checking with integer' do |param, value| describe 'linux kernel parameter' do before :all do RSpec.configure do |c| c.stdout = "#{value}\n" end end context linux_kernel_parameter(param) do its(:value) { should eq value } end context linux_kernel_parameter(param) do its(:value) { should_not eq value + 1 } end end end shared_examples_for 'support explicit linux kernel parameter checking with string' do |param, value| describe 'linux kernel parameter' do before :all do RSpec.configure do |c| c.stdout = "#{value}\n" end end context linux_kernel_parameter(param) do its(:value) { should eq value } end context linux_kernel_parameter(param) do its(:value) { should_not eq value + '_suffix' } end end end shared_examples_for 'support explicit linux kernel parameter checking with regexp' do |param, regexp| describe 'linux kernel parameter' do before :all do RSpec.configure do |c| c.stdout = "4096 16384 4194304\n" end end context linux_kernel_parameter(param) do its(:value) { should match regexp } end context linux_kernel_parameter(param) do its(:value) { should_not match /invalid-string/ } end end end
Version data entries
34 entries across 34 versions & 1 rubygems