File: user_spec.rb

package info (click to toggle)
ruby-specinfra 2.94.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,464 kB
  • sloc: ruby: 10,562; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

property[:os] = nil
set :os, :family => 'solaris', :release => '11'

describe get_command(:get_user_minimum_days_between_password_change, 'foo') do
  it { should eq "passwd -s foo | sed 's/ \\{1,\\}/%/g' | tr '%' '\n' | sed '4q;d'" }
end

describe get_command(:get_user_maximum_days_between_password_change, 'foo') do
  it { should eq "passwd -s foo | sed 's/ \\{1,\\}/%/g' | tr '%' '\n' | sed '5q;d'" }
end