Sha256: 45a6614d9261e2ccd1688adcb227bd8bd620480d519b0e2d60dbff73dc8df02b

Contents?: true

Size: 943 Bytes

Versions: 22

Compression:

Stored size: 943 Bytes

Contents

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

describe "RhoconnectApiDeleteUser" do
  it_should_behave_like "ApiHelper" do 
    
    it "should save adapter url" do
      params = {:api_token => @api_token,
        :attributes => {:adapter_url => 'http://test.com'}}
      post "/api/source/save_adapter", params
      last_response.should be_ok
    end
    
    it "should get adapter url" do
      params = {:api_token => @api_token,
        :attributes => {:adapter_url => 'http://test.com'}}
      post "/api/source/get_adapter", params
      last_response.should be_ok
    end
    
    it "should get check deprecation warning in /api/get_adapter" do
      params = {:api_token => @api_token,
        :attributes => {:adapter_url => 'http://test.com'}}
      post "/api/get_adapter", params
      last_response.should be_ok
      last_response.headers["Warning"].index('deprecated').should_not == nil
    end
  end  
 
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rhoconnect-3.0.0.beta3 spec/api/source/adapter_spec.rb
rhoconnect-3.0.0.beta1 spec/api/source/adapter_spec.rb