Sha256: bfedb335b3820ed4a6a7547ca0db326defcaf4616adf1eb5a4a45f1cc8f5daae

Contents?: true

Size: 594 Bytes

Versions: 15

Compression:

Stored size: 594 Bytes

Contents

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

describe "ApplicationController" do
  include_examples "SpecHelper"
	include Rack::Test::Methods
	include Rhoconnect

  def app
    @app = Rack::URLMap.new Rhoconnect.url_map
  end

  it "should process ApplicationController /login" do
    post "/rc/#{Rhoconnect::API_VERSION}/app/login", {"login" => 'testuser', "password" => ''}.to_json,
          {'CONTENT_TYPE'=>'application/json; charset=UTF-8'}
    last_response.status.should == 200
  end

  it "should process ApplicationController /rps_login" do
    pending
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-7.5.1 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-7.4.1 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-7.1.17 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-6.2.0 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-6.0.11 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.5.18 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.5.17 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.5.15 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.5.0.22 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.5.2 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.5.0.7 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.5.0.3 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.5.0 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-5.1.1 generators/templates/application/spec/application_controller_spec.rb