Sha256: 5438b7b433c3db57494488af8df96d6cb99fea01b6040d7698154b5fc7f22e93

Contents?: true

Size: 731 Bytes

Versions: 6

Compression:

Stored size: 731 Bytes

Contents

require 'spec_helper'

RSpec.describe NgrokAPI::Models::EndpointTLSTermination do
  before(:each) do
    @client = class_double("EndpointTLSTerminationsClient")
    @endpoint_tls_termination = NgrokAPI::Models::EndpointTLSTermination.new(client: @client, result: endpoint_tls_termination_result)
  end

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

  describe "#to_s" do
    it "stringifies as result.to_s" do
      expect(@endpoint_tls_termination.to_s).to eq endpoint_tls_termination_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_tls_termination_spec.rb
ngrok-api-0.17.0 spec/ngrokapi/models/endpoint_tls_termination_spec.rb
ngrok-api-0.16.0 spec/ngrokapi/models/endpoint_tls_termination_spec.rb
ngrok-api-0.15.0 spec/ngrokapi/models/endpoint_tls_termination_spec.rb
ngrok-api-0.14.0 spec/ngrokapi/models/endpoint_tls_termination_spec.rb
ngrok-api-0.12.0 spec/ngrokapi/models/endpoint_tls_termination_spec.rb