<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,26 @@
-require File.dirname(__FILE__) + '/../spec_helper'
\ No newline at end of file
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe ApplicationController, &quot;with header authorization&quot; do
+  scenario :users
+  
+  before(:each) do
+    Radiant::Config['authorization.header'] == 'HTTP_USER_ID'
+    Radiant::Config['authorization.attribute'] == 'login'
+    @controller = ApplicationController.new
+    @request = ActionController::TestRequest.new
+    @response = ActionController::TestResponse.new
+    @request.env['HTTP_USER_ID'] == 'Admin'
+    get '/admin'
+  end
+  
+  it &quot;should get the header for authorization from Radiant::Config['authorization.header']&quot; do
+    @controller.auth_header.should == 'HTTP_USER_ID'
+  end
+  it &quot;should get the user attribute for authorization from Radiant::Config['authorization.attribute']&quot; do
+    @controller.auth_attr.should == 'login'
+  end
+  it &quot;should set the current user by comparing authorization.header and authorization.attribute from the users&quot;
+  describe &quot;with Radiant::Config['authorization.users.create'] set to true&quot; do
+    it &quot;should create a new user if the user with the authorization.header is not found&quot;
+  end
+end
\ No newline at end of file</diff>
      <filename>spec/lib/header_authorization_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>42a6ac6de78e68255be18aa062829a269ec29e42</id>
    </parent>
  </parents>
  <author>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </author>
  <url>http://github.com/saturnflyer/radiant-header_authorize-extension/commit/760b839910a8a4b15d8808c6f100dc58fbdecbc7</url>
  <id>760b839910a8a4b15d8808c6f100dc58fbdecbc7</id>
  <committed-date>2008-08-16T20:56:07-07:00</committed-date>
  <authored-date>2008-08-16T20:56:07-07:00</authored-date>
  <message>adding some specs</message>
  <tree>beaf939f5e65ab9c6878a89ba6e3f688c3db9608</tree>
  <committer>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </committer>
</commit>
