File: relationship__notify_spec.rb

package info (click to toggle)
ruby-rspec-puppet 2.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,416 kB
  • sloc: ruby: 6,661; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'spec_helper'

describe 'relationships::notify' do
  it { should contain_notify('foo').that_notifies('Notify[bar]') }
  it { should contain_notify('baz').that_notifies('Notify[bar]') }
  it { should contain_notify('baz').that_notifies('Notify[gronk]') }

  it { should contain_notify('gronk').that_subscribes_to('Notify[baz]') }
  it { should contain_notify('bar').that_subscribes_to('Notify[baz]') }
  it { should contain_notify('bar').that_subscribes_to('Notify[foo]') }

  it { should contain_notify('foo').that_notifies(['Notify[bar]']) }
  it { should contain_notify('baz').that_notifies(['Notify[bar]','Notify[gronk]']) }

  it { should contain_notify('gronk').that_subscribes_to(['Notify[baz]']) }
  it { should contain_notify('bar').that_subscribes_to(['Notify[baz]','Notify[foo]']) }

  it { should contain_notify('pre').that_notifies(['Notify[post]']) }
  it { should contain_notify('post').that_subscribes_to(['Notify[pre]']) }
end