Sha256: edefc79ba1f20ea830fcaa0fea59eee7bc82c65a8c9e4f5dc8ab16dc818b7af7
Contents?: true
Size: 574 Bytes
Versions: 8
Compression:
Stored size: 574 Bytes
Contents
module TFA describe CLI do subject { CLI.new } let(:secret) { ::ROTP::Base32.random_base32 } describe "#run" do context "when adding a key" do it "saves a new secret" do subject.add("development", secret) expect(subject.show("development")).to eql(secret) end end context "when getting a one time password" do it "creates a totp for a certain key" do subject.add("development", secret) expect(subject.totp("development")).to_not be_nil end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems