2
0
Fork 0
mirror of https://github.com/inspec/inspec synced 2024-12-27 05:23:16 +00:00
inspec/examples/profile-attribute/controls/example.rb

12 lines
299 B
Ruby
Raw Normal View History

2016-05-07 11:04:22 +00:00
# encoding: utf-8
2016-05-07 18:17:09 +00:00
val_user = attribute('user', default: 'alice', description: 'An identification for the user')
val_password = attribute('password', description: 'A value for the password')
2016-05-07 11:04:22 +00:00
2016-05-07 18:17:09 +00:00
describe val_user do
2016-05-07 11:04:22 +00:00
it { should eq 'bob' }
end
2016-05-07 18:17:09 +00:00
describe val_password do
2016-05-07 11:04:22 +00:00
it { should eq 'secret' }
end