This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe StreamingListener do | |
let(:err) { Proc.new { |c| fail "API request failed: #{c.inspect}" } } | |
let(:chat_group) { FactoryGirl.create :chat_group, :chat_group_size => 3 } | |
let(:user) { FactoryGirl.create :user } | |
let(:user2) { FactoryGirl.create :user } | |
describe 'chat_group listener' do | |
it 'should allow a user to become a listener to a chat_group room she has joined' do |