Sha256: d3b2f86be588d4000d3bb9bbb0b6fdde7b40172077300972842475ed2b07ccc0

Contents?: true

Size: 625 Bytes

Versions: 6

Compression:

Stored size: 625 Bytes

Contents

require 'spec_helper'

RSpec.describe NgrokAPI::Models::EndpointOIDC do
  before(:each) do
    @client = class_double("EndpointOIDCsClient")
    @endpoint_oidc = NgrokAPI::Models::EndpointOIDC.new(client: @client, result: endpoint_oidc_result)
  end

  describe "#==" do
    it "is equal if the results are the same" do
      other = NgrokAPI::Models::EndpointOIDC.new(client: @client, result: endpoint_oidc_result)
      expect(@endpoint_oidc == other).to eq true
    end
  end

  describe "#to_s" do
    it "stringifies as result.to_s" do
      expect(@endpoint_oidc.to_s).to eq endpoint_oidc_result.to_s
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ngrok-api-0.18.0 spec/ngrokapi/models/endpoint_oidc_spec.rb
ngrok-api-0.17.0 spec/ngrokapi/models/endpoint_oidc_spec.rb
ngrok-api-0.16.0 spec/ngrokapi/models/endpoint_oidc_spec.rb
ngrok-api-0.15.0 spec/ngrokapi/models/endpoint_oidc_spec.rb
ngrok-api-0.14.0 spec/ngrokapi/models/endpoint_oidc_spec.rb
ngrok-api-0.12.0 spec/ngrokapi/models/endpoint_oidc_spec.rb