Sha256: c9e2fe665325c4fcee73afe7d2143aa7104c36ad2e15637c0a8af48b805ef1c4

Contents?: true

Size: 869 Bytes

Versions: 4

Compression:

Stored size: 869 Bytes

Contents

# Code generated for API Clients. DO NOT EDIT.

require 'spec_helper'

RSpec.describe NgrokAPI::Models::ApplicationUser do
  before(:each) do
    @client = class_double("ApplicationUsersClient")
    @application_user = NgrokAPI::Models::ApplicationUser.new(client: @client, attrs: application_user_result)
  end

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

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

  describe "#delete" do
    it "calls delete on the client" do
      expect(@application_user.client).to receive(:delete)
      @application_user.delete
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ngrok-api-0.24.0 spec/ngrokapi/models/application_user_spec.rb
ngrok-api-0.23.0 spec/ngrokapi/models/application_user_spec.rb
ngrok-api-0.22.0 spec/ngrokapi/models/application_user_spec.rb
ngrok-api-0.21.0 spec/ngrokapi/models/application_user_spec.rb