Sha256: b47d88c4923ff9ed793d999a992378982e26b3474763cc69982d4f3ec7df56a4

Contents?: true

Size: 638 Bytes

Versions: 8

Compression:

Stored size: 638 Bytes

Contents

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

describe "ApplicationController" do
  it_should_behave_like "SpecHelper" do
  	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  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rhoconnect-4.0.4 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-4.0.3 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-4.0.2 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-4.0.1 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-4.0.0 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-4.0.0.beta.24 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-4.0.0.beta.10 generators/templates/application/spec/application_controller_spec.rb
rhoconnect-4.0.0.beta.12 generators/templates/application/spec/application_controller_spec.rb