Sha256: 3dc779d8a43add0f876c8d5aec778397df3327dbf0c295d6366321b9d17bf3e5

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Validic::ThirdPartyApp do

  let(:client) { Validic::Client.new }

  context "#get_apps" do
    before do
      @app_response = client.get_apps
    end

    it "returns JSON response of Validic::ThirdPartyApp", vcr: true do
      @app_response.should_not be_nil
    end

    it "has apps node" do
      @app_response.apps.should_not be_nil
    end
  end

  context "#get_synced_apps" do
    before do
      @synced_app_response = client.get_synced_apps({authentication_token: ENV['TEST_USER_AUTHENTICATION_TOKEN']})
    end

    it "returns JSON response of Validic::ThirdPartyApp", vcr: true do
      @synced_app_response.should_not be_nil
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
validic-0.3.3 spec/validic/third_party_app_spec.rb
validic-0.3.2 spec/validic/third_party_app_spec.rb