Sha256: 5bd0734a6be11f818f0f509e52a65f17945f32a390b3aebf8ea11c6f9936eadd

Contents?: true

Size: 701 Bytes

Versions: 6

Compression:

Stored size: 701 Bytes

Contents

require 'spec_helper'

RSpec.describe NgrokAPI::Models::AbuseReportHostname do
  before(:each) do
    @client = class_double("AbuseReportHostnamesClient")
    @abuse_report_hostname = NgrokAPI::Models::AbuseReportHostname.new(client: @client, result: abuse_report_hostname_result)
  end

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

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