Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. require 'spec_helper'
  2. require 'webmock/rspec'
  3.  
  4. describe Tps::CtxConferencesService do
  5. let(:conference) { nil }
  6.  
  7. subject { Tps::CtxParticipantCdrService.new(conference) }
  8.  
  9. VCR.configure do |c|
  10. c.cassette_library_dir = 'fixtures/vcr_cassettes/telepresence'
  11. c.hook_into :webmock
  12. end
  13.  
  14. context '#create_tps_participants_history' do
  15. let(:conference) do
  16. FactoryGirl.create :tps_portal_conference, tps_meeting_id: '97860364'
  17. end
  18.  
  19. it 'Сохранение истории tps участников конференци' do
  20. VCR.use_cassette('ctx/cdr/create_tps_participant_cdrs') do
  21. expect { subject.create_tps_participants_history }.not_to raise_error
  22. end
  23. end
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement