Skip to content

Commit

Permalink
Queues can change max size, have members who can be dequed. Also chan…
Browse files Browse the repository at this point in the history
…ged variable name in conference_spec.rb to "conference" instead of "call." queue_spec.rb also passing
  • Loading branch information
Oscar Sanchez committed Aug 6, 2012
1 parent 8580bd6 commit ce7d36c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/rest/conference_spec.rb
Expand Up @@ -2,8 +2,8 @@

describe Twilio::REST::Conference do
it 'should set up a participants resources object' do
call = Twilio::REST::Conference.new('someUri', 'someClient')
call.respond_to?(:participants).should == true
call.participants.instance_variable_get('@uri').should == 'someUri/Participants'
conference = Twilio::REST::Conference.new('someUri', 'someClient')
conference.respond_to?(:participants).should == true
conference.participants.instance_variable_get('@uri').should == 'someUri/Participants'
end
end
end
9 changes: 9 additions & 0 deletions spec/rest/queue_spec.rb
@@ -0,0 +1,9 @@
require 'spec_helper'

describe Twilio::REST::Queue do
it 'should set up a members resources object' do
queue = Twilio::REST::Queue.new('someUri', 'someClient')
queue.respond_to?(:members).should == true
queue.members.instance_variable_get('@uri').should == 'someUri/Members'
end
end

0 comments on commit ce7d36c

Please sign in to comment.