Tutorial

Basic structure of test files

With Rakefile generated by serverspec-init, test files must be placed under the directory which name matches the target host name like this. (You can customize this structure by editing Rakefile and spec_helper.rb as you like.)

spec/target.example.jp/http_spec.rb

You can write a test file like this.

require'spec_helper'describe'<name of the resource being tested>'do# your tests ...end