Skip to content

Instantly share code, notes, and snippets.

@bonyiii
Created October 1, 2015 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bonyiii/f70845d61959f28a2ba7 to your computer and use it in GitHub Desktop.
Save bonyiii/f70845d61959f28a2ba7 to your computer and use it in GitHub Desktop.
describe "#list_units" do
let(:unit_list) do
'unit' => [
{
'name' => 'foo.service'
'currentstate' => 'a'
'desiredstate' => 'b'
'options' => 'c'
}
]
end
subject { Fleet::Client.new }
it "it should return active nodes" do
expect(subject.list_units).to eq(unit_list)
end
end-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment