Sha256: 99db5f010b693a1dbb09ed3f2c2b80db3b789f32297dd35faf8d04744acb0a4e

Contents?: true

Size: 489 Bytes

Versions: 14

Compression:

Stored size: 489 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe OnStomp do
  describe ".connect / .open" do
    let(:client) { mock('client') }
    let(:client_uri) { mock('uri') }
    let(:client_options) { mock('options') }
    it "should create a new client and connect it" do
      OnStomp::Client.should_receive(:new).with(client_uri, client_options).and_return(client)
      client.should_receive(:connect)
      OnStomp.open(client_uri, client_options).should == client
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
onstomp-1.0.12 spec/onstomp_spec.rb
onstomp-1.0.11 spec/onstomp_spec.rb
onstomp-1.0.10 spec/onstomp_spec.rb
onstomp-1.0.9 spec/onstomp_spec.rb
onstomp-1.0.8 spec/onstomp_spec.rb
onstomp-1.0.7 spec/onstomp_spec.rb
onstomp-1.0.6 spec/onstomp_spec.rb
onstomp-1.0.5 spec/onstomp_spec.rb
onstomp-1.0.4 spec/onstomp_spec.rb
onstomp-1.0.3 spec/onstomp_spec.rb
onstomp-1.0.2 spec/onstomp_spec.rb
onstomp-1.0.1 spec/onstomp_spec.rb
onstomp-1.0.0 spec/onstomp_spec.rb
onstomp-1.0.0pre1 spec/onstomp_spec.rb