Sha256: 05a23526286144e401c48a26a45af947d67bfb35e358a1553b7d7e429cc5c87a

Contents?: true

Size: 1.11 KB

Versions: 38

Compression:

Stored size: 1.11 KB

Contents

describe DeployGate::API::V1::Users::App do
  describe "#not_provisoned_udids" do
    it "success" do
      name = 'test'
      package_name = 'package_name'
      platform = 'ios'
      token = 'token'
      provisioned_iphone = {:udid => 'udid', :user_name => 'user_name', :device_name => 'name', :is_provisioned => true}
      not_provisioned_iphone = {:udid => 'udid2', :user_name => 'user_name2', :device_name => 'name2', :is_provisioned => false}
      response = {
          :error => false,
          :because => '',
          :results => [provisioned_iphone, not_provisioned_iphone]
      }
      stub_request(:get, "#{API_ENDPOINT}/users/#{name}/platforms/#{platform}/apps/#{package_name}/udids").
          to_return(:body => response.to_json)

      results = DeployGate::API::V1::Users::App.not_provisioned_udids(token, name, package_name, platform)
      expect(results).to eq({
                                :error => response[:error],
                                :message => response[:because],
                                :results => [not_provisioned_iphone]
                            })
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
deploygate-0.9.1 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.9.0 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.8.6 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.8.5 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.8.4 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.8.3 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.8.2 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.8.1 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.8.0 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.7.0 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.8 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.7 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.6 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.5 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.4 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.3 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.2 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.1 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.6.0 spec/deploygate/api/v1/users/app_spec.rb
deploygate-0.5.6 spec/deploygate/api/v1/users/app_spec.rb