Sha256: f1d373e55c28c73c49f6e4386f672d1da284adbbd3ef3bae89716d6784b3c313

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

require 'spec_helper'
require 'routemaster/client/subscription'

describe Routemaster::Client::Subscription do
  describe '#initialize' do
    let(:options) {{ 
      'subscriber' => 'alice', 
      'callback'   => 'https://example.com/events',
      'topics'     => %w[widgets],
      'events'     => {},
    }}

    subject { described_class.new(options) }
    
    it 'passes' do
      expect { subject }.not_to raise_error
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
routemaster-client-3.2.0 spec/client/subscription_spec.rb
routemaster-client-3.1.2 spec/client/subscription_spec.rb
routemaster-client-3.1.1 spec/client/subscription_spec.rb