spec/lib/cli_spec.rb in tfa-0.0.12 vs spec/lib/cli_spec.rb in tfa-0.0.13

- old
+ new

@@ -75,7 +75,13 @@ subject.destroy(name) expect(subject.show(name)).to be_nil end end + + describe "#now" do + it "returns a time based one time password for the given secret" do + expect(subject.now(dev_secret)).to eql(code_for(dev_secret)) + end + end end end