Sha256: b9afc752f1cdcde08acd8dfbc360342c3d13a8b9e741fb4920b2dee630341f6f

Contents?: true

Size: 615 Bytes

Versions: 6

Compression:

Stored size: 615 Bytes

Contents

require 'spec_helper'

RSpec.describe NgrokAPI::Models::AbuseReport do
  before(:each) do
    @client = class_double("AbuseReportsClient")
    @abuse_report = NgrokAPI::Models::AbuseReport.new(client: @client, result: abuse_report_result)
  end

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

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