Commit c00efba

mo <mo.khan@gmail.com>
2018-02-10 18:44:55
delete duplicate specs.
1 parent 183b051
Changed files (1)
spec/lib/console_spec.rb
@@ -1,22 +0,0 @@
-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