Sha256: 5c3233d9d201f9510ed57a4a6f84fd620fd9e8baca38dc8d8b98937666d7847a

Contents?: true

Size: 680 Bytes

Versions: 6

Compression:

Stored size: 680 Bytes

Contents

require 'spec_helper'
require 'json'
describe TestdroidAPI::DeviceGroup do
  before :all do
    VCR.use_cassette('dg_oauth2_auth_device_groups') do
      @user = client.authorize
    end
  end
  
  it 'get device groups' do 

    VCR.use_cassette('dg_all_device_groups') do
      
      device_groups = @user.device_groups
      expect(device_groups.total).to eq(1) 
      
    end
  end
   it 'get device group using id' do 
    
     VCR.use_cassette('dg_device_group_4165') do
      device_group_4165 = @user.device_groups.get(4165)
      expect(device_group_4165.id).to eq(4165) 
      expect(device_group_4165.display_name).to eq("testi grouppen")
      
     end
   end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
testdroid-api-client-0.3.0 spec/device_groups_spec.rb
testdroid-api-client-0.2.3 spec/device_groups_spec.rb
testdroid-api-client-0.2.2 spec/device_groups_spec.rb
testdroid-api-client-0.2.1 spec/device_groups_spec.rb
testdroid-api-client-0.2.0 spec/device_groups_spec.rb
testdroid-api-client-0.1.3 spec/device_groups_spec.rb