spec/lib/api_spec.rb in conjur-api-2.0.1 vs spec/lib/api_spec.rb in conjur-api-2.1.0
- old
+ new
@@ -64,19 +64,9 @@
let(:port_offset) { 300 }
let(:api) { Conjur::Core::API }
it_should_behave_like "API endpoint"
end
end
- context ".class" do
- describe '#token_valid?' do
- subject { Conjur::API }
- it "raises KeyError when there's no authn key in the db" do
- require 'slosilo'
- Slosilo.stub(:[]).with(:authn).and_return nil
- expect { subject.token_valid? :whatever }.to raise_error(KeyError)
- end
- end
- end
context "credential handling" do
let(:login) { "bob" }
let(:token) { { 'data' => login, 'timestamp' => (Time.now + elapsed ).to_s } }
let(:elapsed) { 0 }
before {