Sha256: 72d91c43448b75cc2b0eff95a4ef06df9c20265da3e8e4c85add79ee77d00d63
Contents?: true
Size: 845 Bytes
Versions: 4
Compression:
Stored size: 845 Bytes
Contents
# Code generated for API Clients. DO NOT EDIT. require 'spec_helper' RSpec.describe NgrokAPI::Models::IPRestriction do before(:each) do @client = class_double("IPRestrictionsClient") @ip_restriction = NgrokAPI::Models::IPRestriction.new(client: @client, attrs: ip_restriction_result) end describe "#==" do it "is equal if the results are the same" do other = NgrokAPI::Models::IPRestriction.new(client: @client, attrs: ip_restriction_result) expect(@ip_restriction == other).to eq true end end describe "#to_s" do it "stringifies as result.to_s" do expect(@ip_restriction.to_s).to eq ip_restriction_result.to_s end end describe "#delete" do it "calls delete on the client" do expect(@ip_restriction.client).to receive(:delete) @ip_restriction.delete end end end
Version data entries
4 entries across 4 versions & 1 rubygems