Sha256: d9d3441f157f767df69e8170809abb339fc66b7eebcec0951a34ba2fa73524e4

Contents?: true

Size: 737 Bytes

Versions: 6

Compression:

Stored size: 737 Bytes

Contents

require 'spec_helper'

RSpec.describe NgrokAPI::Models::EndpointOAuthMicrosoft do
  before(:each) do
    @client = class_double("EndpointOAuthMicrosoftsClient")
    @endpoint_o_auth_microsoft = NgrokAPI::Models::EndpointOAuthMicrosoft.new(client: @client, result: endpoint_o_auth_microsoft_result)
  end

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

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