Sha256: db97e55c685a2d91a9a318fd5f8554bd604b66512bcaf865c0b9c0aa0e2fceb8

Contents?: true

Size: 556 Bytes

Versions: 11

Compression:

Stored size: 556 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe CloudApp do
  
  it "should set correct headers" do
    CloudApp::HEADERS['User-Agent'].should    == "Ruby.CloudApp.API"
    CloudApp::HEADERS['Accept'].should        == "application/json"
    CloudApp::HEADERS['Content-Type'].should  == "application/json"
  end
  
  it "should be authenticatable" do
    auth = {
      :username => "testuser@test.com",
      :password => "password"
    }
    CloudApp.authenticate(auth[:username], auth[:password]).should == auth
  end
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cloudapp_api-0.5.0 spec/cloudapp_api_spec.rb
cloudapp_api-0.4.0 spec/cloudapp_api_spec.rb
cloudapp_api-0.3.3 spec/cloudapp_api_spec.rb
cloudapp_api-0.3.2 spec/cloudapp_api_spec.rb
cloudapp_api-0.3.1 spec/cloudapp_api_spec.rb
cloudapp_api-0.3.0 spec/cloudapp_api_spec.rb
cloudapp_api-0.2.2 spec/cloudapp_api_spec.rb
cloudapp_api-0.2.1 spec/cloudapp_api_spec.rb
cloudapp_api-0.2.0 spec/cloudapp_api_spec.rb
cloudapp_api-0.1.1 spec/cloudapp_api_spec.rb
cloudapp_api-0.1.0 spec/cloudapp_api_spec.rb