这两者有什么区别?
it { should be_owned_by 'cool_user' }
vs
its('owner') { should eq 'cool_user' }
it { should be_grouped_into 'cool_group' }
vs
its('group') { should eq 'cool_group' }
这两者有什么区别?
it { should be_owned_by 'cool_user' }
vs
its('owner') { should eq 'cool_user' }
it { should be_grouped_into 'cool_group' }
vs
its('group') { should eq 'cool_group' }
Inspec 支持这两种样式。
it { should be_owned_by 'cool_user' }
it { should be_grouped_into 'cool_group' }
虽然这种风格看起来更像是serverspec的写法:)