File: boolean_regexp_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 (13 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'spec_helper'

describe 'boolean_test' do
  let(:title) { 'bool.testing' }
  let(:params) { { :bool => false } }
  let(:message_re) { /bool is false/ }

  it { should create_notify("bool testing").with_message(message_re) }

  # `should_not with_messsage` == `should without_message`
  it { should_not create_notify("bool testing").with_message(/true/) }
  it { should create_notify("bool testing").without_message(/true/) }
end