Sha256: bdad6cb7dee24e792c155094a28b4e2b9e19c56c3b156864b929d840d5e3b74b

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 Bytes

Contents

require 'spec_helper'

RSpec.describe NgrokAPI::Models::EndpointIPPolicy do
  before(:each) do
    @client = class_double("EndpointIPPolicysClient")
    @endpoint_ip_policy = NgrokAPI::Models::EndpointIPPolicy.new(client: @client, result: endpoint_ip_policy_result)
  end

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

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