Sha256: 53a2c37f550cc1c4e2246e6ca4e36d4d0cbf886bfe4e9a614f7d11a2fbf56a57

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 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, attrs: abuse_report_result)
  end

  describe "#==" do
    it "is equal if the results are the same" do
      other = NgrokAPI::Models::AbuseReport.new(client: @client, attrs: 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

1 entries across 1 versions & 1 rubygems

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