Sha256: bf5a34b951f6b7b37b129c2d867b7fc97e9d3cd3cfd23a78f07f17d4d4149cf6

Contents?: true

Size: 637 Bytes

Versions: 8

Compression:

Stored size: 637 Bytes

Contents

require 'spec_helper'

describe CanvasWebex::Training do
  let(:client) {CanvasWebex::Service.new('training', 'proserv_instructure', 'foo', '123', 'instructure', nil, 'test')}
  subject{CanvasWebex::Training.retrieve(123, client)}

  before(:each) do
    stub_call('get_training')
  end

  it 'returns the session name' do
    subject.conf_name.should == "test"
  end

  it 'returns the session key' do
    subject.session_key.should == "752909833"
  end

  it 'returns the start date' do
    subject.start_date.should == "01/14/2014 11:22:55"
  end

  it 'returns the status' do
    subject.status.should == "NOT_INPROGRESS"
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
canvas_webex-0.18.2 spec/lib/canvas_webex/training_spec.rb
canvas_webex-0.18.1 spec/lib/canvas_webex/training_spec.rb
canvas_webex-0.18.0 spec/lib/canvas_webex/training_spec.rb
canvas_webex-0.17 spec/lib/canvas_webex/training_spec.rb
canvas_webex-0.16 spec/lib/canvas_webex/training_spec.rb
canvas_webex-0.15 spec/lib/canvas_webex/training_spec.rb
canvas_webex-0.14 spec/lib/canvas_webex/training_spec.rb
canvas_webex-0.13 spec/lib/canvas_webex/training_spec.rb