Sha256: 15bdf8aa95f74f9edc7ea06675b015b3bfb85b6e604abe81b041f7fce22e7daf

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Validic::Organization do

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

  context "#get_organization" do
    before do
      @organization_response = client.get_organization({organization_id: "51aca5a06dedda916400002b", access_token: "ENTERPRISE_KEY"})
    end

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

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

    it "has summary node" do
      @organization_response.summary.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/organization_spec.rb
validic-0.3.2 spec/validic/organization_spec.rb