Sha256: f83412a29625e44de0b7383cceed57ea35c4cd6f397e3c59399efbbc534257ba

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

require 'spec_helper'
describe "With Client id and Client Srecret valids" do
  context "Token" do
    before do
      fake_token_without_authentication
    end
    
   it "should return one token valid" do
      logged_with_credentials.token.should be === "token-12345678910"
    end
  end
  
  context "Token with email and password valids" do
    before do
      fake_token_with_authentication
      user_logged
    end
    it "should return one token valid" do
       user_logged.token.should be === "token-authenticate-12345678910"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apontador_oauth2-0.1.5 spec/client_spec.rb