File: boolean_regexp_spec.rb

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 489 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

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

  it { is_expected.to create_notify('bool testing').with_message(message_re) }

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