Sha256: cac11473ccf82a0f796cfd435b802cf39417776dd4e3f99b21023c953a6a3e7a

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Validic::Biometric do

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

  context "#get_biometrics" do
    before do
      @user_biometrics = client
        .get_biometrics({
          start_date: '2014-01-01',
          user_id: ENV['TEST_USER_ID']
        })
    end

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

    it "status 200" do
      @user_biometrics.summary.status.should == 200
    end

    context "#summary response" do
      it "not nil" do
        @user_biometrics.summary.should_not be_nil
      end

      it "results not 0" do
        @user_biometrics.summary.results.should_not == 0
      end
    end

    context "#biometrics collection" do
      it "has a collection" do
        @user_biometrics.biometrics.should be_a(Array)
      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

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