spec/command/resources_spec.rb in conjur-cli-4.24.0 vs spec/command/resources_spec.rb in conjur-cli-4.25.0
- old
+ new
@@ -147,6 +147,16 @@
end
it "displays JSONised list of roles" do
expect(JSON.parse( expect { invoke }.to write )).to eq(roles_list)
end
end
+
+ context "interactivity" do
+ subject { Conjur::Command::Resources }
+ describe_command 'resource:annotate -i #{KIND}:#{ID}' do
+ it {
+ is_expected.to receive(:prompt_for_annotations)
+ invoke_silently
+ }
+ end
+ end
end