Sha256: 196b453eb67e57921ff740ca25ab49ee119ea087604c9404875c5f8101fa1812

Contents?: true

Size: 639 Bytes

Versions: 1

Compression:

Stored size: 639 Bytes

Contents

require 'spec_helper'

RSpec.describe NgrokAPI::Models::EndpointOAuth do
  before(:each) do
    @client = class_double("EndpointOAuthsClient")
    @endpoint_o_auth = NgrokAPI::Models::EndpointOAuth.new(client: @client, attrs: endpoint_o_auth_result)
  end

  describe "#==" do
    it "is equal if the results are the same" do
      other = NgrokAPI::Models::EndpointOAuth.new(client: @client, attrs: endpoint_o_auth_result)
      expect(@endpoint_o_auth == other).to eq true
    end
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ngrok-api-0.19.0 spec/ngrokapi/models/endpoint_o_auth_spec.rb