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