Sha256: ab38e3ec4d832391dc96674c8630063142c549763fdfba54d850a98c709e0b05
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
require 'spec_helper' RSpec.describe NgrokAPI::Models::Tunnel do before(:each) do @client = class_double("TunnelsClient") @tunnel = NgrokAPI::Models::Tunnel.new(client: @client, attrs: tunnel_result) end describe "#==" do it "is equal if the results are the same" do other = NgrokAPI::Models::Tunnel.new(client: @client, attrs: tunnel_result) expect(@tunnel == other).to eq true end end describe "#to_s" do it "stringifies as result.to_s" do expect(@tunnel.to_s).to eq tunnel_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/tunnel_spec.rb |