Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: When running rspec with the '-f d' option the optional matchers are being omitted. This patch adds better descriptions for * be_enabled.rb * be_listening.rb * be_running.rb * have_rule.rb Examples: describe service('dovecot') do it { should be_enabled.with_level(3) } it { should be_running.under('init') } end Before: Service "dovecot" should be enabled should be running After: Service "dovecot" should be enabled with level 3 should be running under init --- describe port(143) do it { should be_listening.on('127.0.0.1').with('tcp') } it { should be_listening.on('::1').with('tcp6') } end Before: Port "143" should not be listening should not be listening After: Port "143" should be listening on 127.0.0.1 with tcp should be listening on ::1 with tcp6 --- describe iptables do it { should have_rule('-j IMAP').with_chain('INPUT').with_table('filter') } end Before: Iptables should have rule "-j IMAP" After: Iptables should have rule "-j IMAP" with table filter and with chain INPUT
- Loading branch information