Sha256: 89ac58fd9ff7cd437354ad8950080ed4af021f46e9270b70229b586b94448c7d
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
require 'spec_helper' describe "ignore" do example "ignore" do hosts.each do |host| on host, 'echo hello' end end example "access options hash" do install_pe end example "access the logger" do logger.debug("hi, i'm a debug message") logger.notify("hi, I'm a notify message") end context "has serverspec support" do hosts.each do |node| sshd = case node['platform'] when /windows|el-|redhat|centos|debian/ 'sshd' else 'ssh' end describe service(sshd), :node => node do it { should be_running } end usr = case node['platform'] when /windows/ 'Administrator' else 'root' end describe user(usr), :node => node do it { should exist } end end end context "serverspec: can access default node" do usr = case default['platform'] when /windows/ 'Administrator' else 'root' end describe user(usr) do it { should exist } end end context "serverspec: can match multiline file to multiline contents" do contents = "four = five\n[one]\ntwo = three" create_remote_file(default, "file_with_contents.txt", contents) describe file("file_with_contents.txt") do it { should be_file } it { should contain(contents) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beaker-rspec-5.0.2 | spec/acceptance/example_spec.rb |
beaker-rspec-5.0.1 | spec/acceptance/example_spec.rb |