Sha256: ee5f0428c58af77fff8506226d20bfd7a49bb25827c06650c91816929e60fabf
Contents?: true
Size: 434 Bytes
Versions: 4
Compression:
Stored size: 434 Bytes
Contents
require_relative './spec_helper' describe "Authentication" do describe "whoami" do context "when user is unauthenticated" do it_behaves_like "Unauthenticated", ->(api) { api.whoami } end context "when auth success" do specify do api = _api(login: user1["login"], application_token: user1["rw_token"]) expect(api.whoami).to eq(user1["login"]) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vzaar-1.6.2 | examples/authentication_spec.rb |
vzaar-1.6.1 | examples/authentication_spec.rb |
vzaar-1.6.0 | examples/authentication_spec.rb |
vzaar-1.5.3 | examples/authentication_spec.rb |