diff options
| author | mo khan <mokhan@users.noreply.github.com> | 2016-11-18 10:29:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-18 10:29:33 -0700 |
| commit | 172e3dfb7ff0ebec111a8349daddd50ad86648aa (patch) | |
| tree | 216abfe1666126bda23cc2b27e5222c4e8f0ec9e /spec/lib/cli_spec.rb | |
| parent | 6301ea64a649212838a449e7f11af91f72bd5263 (diff) | |
| parent | 32938166ecb1d446101f0b312a3ba4635a010bdc (diff) | |
Merge pull request #6 from mokhan/GH-3v0.0.12
Add a command to remove a secret.
Diffstat (limited to 'spec/lib/cli_spec.rb')
| -rw-r--r-- | spec/lib/cli_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/lib/cli_spec.rb b/spec/lib/cli_spec.rb index 80d1ab8..f1a68d4 100644 --- a/spec/lib/cli_spec.rb +++ b/spec/lib/cli_spec.rb @@ -66,5 +66,16 @@ module TFA end end end + + describe "#destroy" do + let(:name) { "development" } + + it "removes the secret with the given name" do + subject.add(name, dev_secret) + subject.destroy(name) + + expect(subject.show(name)).to be_nil + end + end end end |
