-
Notifications
You must be signed in to change notification settings - Fork 3
Installation & usage
Silvio Montanari edited this page Aug 10, 2014
·
7 revisions
Install nodespec as part your Gemfile bundle
gem 'nodespec'
or directly through the gem command
gem install nodespec
Require nodespec in your spec file or more in general in your spec_helper file:
require 'nodespec'
In order for nodespec to detect that you want to test a node you have to specify a nodespec metadata in your root example group, e.g.
describe 'test.server.com', nodespec: true do
... # serverspec syntax here
end
The nodespec metadata value can be a simple boolean true (when your running tests against your own host), a string or a hash. See Nodes configuration for details and examples.