Sha256: d18b555bd90147563e97346fb97d5d3a0001b8d58480c8eedccd91ca6af68d7a

Contents?: true

Size: 215 Bytes

Versions: 3

Compression:

Stored size: 215 Bytes

Contents

require 'spec_helper'

describe Yaps::Subscriber do
  it 'it should receive the message' do
    user = User.new :name => 'John'
    expect(User.subscribe_instance).to receive(:receiver).once
    user.save
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yaps-0.1.0 spec/subscriber_spec.rb
yaps-0.0.2 spec/subscriber_spec.rb
yaps-0.0.1 spec/subscriber_spec.rb