Created
October 1, 2015 13:06
-
-
Save bonyiii/f70845d61959f28a2ba7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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