Sha256: 7ded48cff37be44546e15a2f4d491d879e7ce547f4266adffb19750decdec628
Contents?: true
Size: 295 Bytes
Versions: 3
Compression:
Stored size: 295 Bytes
Contents
shared_examples_for 'support interface matcher' do |name| describe 'interface' do let(:stdout) { '1000' } describe interface(name) do its(:speed) { should eq 1000 } end describe interface('invalid-interface') do its(:speed) { should_not eq 100 } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.6.16 | spec/support/shared_interface_examples.rb |
serverspec-0.6.15 | spec/support/shared_interface_examples.rb |
serverspec-0.6.13 | spec/support/shared_interface_examples.rb |