Sha256: 6d8c856ac2bbdf519e47a28e4b8e979d58a236a37cbc08ce7eb186acef932852

Contents?: true

Size: 541 Bytes

Versions: 8

Compression:

Stored size: 541 Bytes

Contents

require File.join(File.dirname(__FILE__),'..','api_helper')

describe "RhoconnectApiGetLicenseInfo" do
  it_should_behave_like "ApiHelper" do
    it "should get license info" do
      get "/rc/#{Rhoconnect::API_VERSION}/system/license", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token}
      JSON.parse(last_response.body).should == {
        "available" => 9, 
        "issued" => "Fri Apr 23 17:20:13 -0700 2010", 
        "seats" => 10, 
        "rhoconnect_version" => "Version 1",
        "licensee" => "Rhomobile" }
    end
  end  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rhoconnect-4.0.4 spec/api/system/get_license_info_spec.rb
rhoconnect-4.0.3 spec/api/system/get_license_info_spec.rb
rhoconnect-4.0.2 spec/api/system/get_license_info_spec.rb
rhoconnect-4.0.1 spec/api/system/get_license_info_spec.rb
rhoconnect-4.0.0 spec/api/system/get_license_info_spec.rb
rhoconnect-4.0.0.beta.24 spec/api/system/get_license_info_spec.rb
rhoconnect-4.0.0.beta.10 spec/api/system/get_license_info_spec.rb
rhoconnect-4.0.0.beta.12 spec/api/system/get_license_info_spec.rb